validate-settings.mk 849 Bytes
Newer Older
Simon Marlow's avatar
Simon Marlow committed
1 2
# DO NOT EDIT!  Instead, create a file mk/validate.mk, whose settings will
# override these.  See also mk/custom-settings.mk.
3

4 5
WERROR          = -Werror

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
simonpj@microsoft.com's avatar
simonpj@microsoft.com committed
12 13 14 15
# Using -O (rather than -O0) here bringes my validate down from 22mins to 16 mins.
# Compiling stage2 takes longer, but we gain a faster haddock, faster
# running of the tests, and faster building of the utils to be installed

16
GhcLibHcOpts    = -O -fasm -dcore-lint
Ian Lynagh's avatar
Ian Lynagh committed
17
GhcLibWays      = v
18
SplitObjs       = NO
19 20
NoFibWays       =
STRIP           = :
21

22
ifeq "$(ValidateHpc)" "YES"
Ian Lynagh's avatar
Ian Lynagh committed
23
GhcStage2HcOpts += -fhpc -hpcdir $(TOP)/testsuite/hpc_output/
24 25 26 27 28 29
endif
ifeq "$(ValidateSlow)" "YES"
GhcStage2HcOpts += -XGenerics -DDEBUG
GhcLibHcOpts    += -XGenerics
endif