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