Disable same warnings for normal builds as for validate (#10223)
[ghc.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 HADDOCK_DOCS = YES
6
7 SRC_HC_OPTS += -H64m -O0
8
9 GhcStage1HcOpts += -O
10 GhcStage2HcOpts += -O -dcore-lint
11 # Using -O (rather than -O0) here bringes my validate down from 22mins to 16 mins.
12 # Compiling stage2 takes longer, but we gain a faster haddock, faster
13 # running of the tests, and faster building of the utils to be installed
14
15 GhcLibHcOpts += -O -dcore-lint
16
17 # We define DefaultFastGhcLibWays in this style so that the value is
18 # correct even if the user alters DYNAMIC_GHC_PROGRAMS.
19 # Technically we don't need the v way if DYNAMIC_GHC_PROGRAMS is YES,
20 # but with -dynamic-too it's cheap, and makes life easier.
21 DefaultFastGhcLibWays = $(if $(filter $(DYNAMIC_GHC_PROGRAMS),YES),v dyn,v)
22 DefaultProfGhcLibWays = $(if $(filter $(GhcProfiled),YES),p,)
23
24 ifeq "$(ValidateSpeed)" "FAST"
25 GhcLibWays = $(DefaultFastGhcLibWays)
26 else
27 GhcLibWays := $(filter v dyn,$(GhcLibWays))
28 endif
29 GhcLibWays += $(DefaultProfGhcLibWays)
30 SplitObjs = NO
31 NoFibWays =
32 STRIP_CMD = :
33
34 CHECK_PACKAGES = YES
35
36 # We want to install DPH when validating, so that we can test it
37 InstallExtraPackages = YES
38
39 # dblatex with miktex under msys/mingw can't build the PS and PDF docs,
40 # and just building the HTML docs is sufficient to check that the
41 # markup is correct, so we turn off PS and PDF doc building when
42 # validating.
43 BUILD_DOCBOOK_PS = NO
44 BUILD_DOCBOOK_PDF = NO
45
46 ifeq "$(ValidateHpc)" "YES"
47 GhcStage2HcOpts += -fhpc -hpcdir $(TOP)/testsuite/hpc_output/
48 endif
49 ifeq "$(ValidateSpeed)" "SLOW"
50 GhcStage2HcOpts += -DDEBUG
51 endif