Last active
October 29, 2015 09:28
-
-
Save brendanhay/8d76eceede2de7219671 to your computer and use it in GitHub Desktop.
Cabal O1/O2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flag optimise | |
Description: Turns on -O2 optimizations | |
Default: False | |
library | |
... | |
if flag(optimise) | |
ghc-options: -O2 -Wall -Werror | |
else | |
ghc-options: -O1 -Wall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment