14ae5b2d24ec0ee260c83372e1155f8cc6b22d3d
[ghc-hetmet.git] / mk / validate-settings.mk
1
2 WERROR          = -Werror
3
4 HADDOCK_DOCS    = YES
5 SRC_CC_OPTS     = $(WERROR)
6 SRC_HC_OPTS     = $(WERROR) -H64m -O0 -fasm
7 GhcStage1HcOpts = -O -fasm
8
9 GhcStage2HcOpts = -O -fasm
10 # Using -O (rather than -O0) here bringes my validate down from 22mins to 16 mins.
11 # Compiling stage2 takes longer, but we gain a faster haddock, faster
12 # running of the tests, and faster building of the utils to be installed
13
14 GhcLibHcOpts    = -O -fasm -dcore-lint
15 GhcLibWays      =
16 SplitObjs       = NO
17 NoFibWays       =
18 STRIP           = :
19 GhcBootLibs     = YES
20
21 ifeq "$(ValidateHpc)" "YES"
22 GhcStage2HcOpts += -fhpc -hpcdir $(FPTOOLS_TOP_ABS)/testsuite/hpc_output/
23 endif
24 ifeq "$(ValidateSlow)" "YES"
25 GhcStage2HcOpts += -XGenerics -DDEBUG
26 GhcLibHcOpts    += -XGenerics
27 endif
28