For now, use -fno-warn-unused-do-bind when building the libraries
[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     += -Wall $(WERROR)
8 SRC_HC_OPTS     += -Wall $(WERROR) -H64m -O0 -fasm
9
10 # Temporary hack until we fix the libraries. See #3263 for details.
11 GhcLibHcOpts    += -fno-warn-unused-do-bind
12
13 GhcStage1HcOpts += -O -fasm
14
15 GhcStage2HcOpts += -O -fasm
16 # Using -O (rather than -O0) here bringes my validate down from 22mins to 16 mins.
17 # Compiling stage2 takes longer, but we gain a faster haddock, faster
18 # running of the tests, and faster building of the utils to be installed
19
20 GhcLibHcOpts    += -O -fasm -dcore-lint
21 GhcLibWays      = v
22 SplitObjs       = NO
23 NoFibWays       =
24 STRIP           = :
25
26 ifeq "$(ValidateHpc)" "YES"
27 GhcStage2HcOpts += -fhpc -hpcdir $(TOP)/testsuite/hpc_output/
28 endif
29 ifeq "$(ValidateSlow)" "YES"
30 GhcStage2HcOpts += -XGenerics -DDEBUG
31 GhcLibHcOpts    += -XGenerics
32 endif
33