Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow rules to override -O2 with their own compiler_flags. (#373)
* Allow rules to override -O2 with their own compiler_flags. Currently, `-c opt` will turn on optimization for all Haskell rules with no way to disable it. Previously, it was possible to do so with `compiler_flags = ["-O0"]`, but that behavior was changed in #342: https://github.com/tweag/rules_haskell/pull/342/files#diff-33a8c46955e2a9917090b5258346aee2L247 Some Haskell packages take a *lot* of memory and a lot longer to compile with optimizations. So it's useful for us to be able to control this tradeoff.
- Loading branch information