1 # DO NOT EDIT! Instead, create a file mk/validate.mk, whose settings will
2 # override these. See also mk/custom-settings.mk.
7 SRC_CC_OPTS += -Wall $(WERROR)
8 SRC_HC_OPTS += -Wall $(WERROR) -H64m -O0
13 # Using -O (rather than -O0) here bringes my validate down from 22mins to 16 mins.
14 # Compiling stage2 takes longer, but we gain a faster haddock, faster
15 # running of the tests, and faster building of the utils to be installed
17 GhcLibHcOpts += -O -dcore-lint
18 GhcLibWays := $(filter v dyn,$(GhcLibWays))
25 # dblatex with miktex under msys/mingw can't build the PS and PDF docs,
26 # and just building the HTML docs is sufficient to check that the
27 # markup is correct, so we turn off PS and PDF doc building when
30 BUILD_DOCBOOK_PDF = NO
32 ifeq "$(ValidateHpc)" "YES"
33 GhcStage2HcOpts += -fhpc -hpcdir $(TOP)/testsuite/hpc_output/
35 ifeq "$(ValidateSlow)" "YES"
36 GhcStage2HcOpts += -XGenerics -DDEBUG
37 GhcLibHcOpts += -XGenerics
40 ######################################################################
41 # Disable some warnings in packages we use
43 # Temporarily turn off unused-do-bind warnings for the time package
44 libraries/time_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-do-bind
45 # On Windows, there are also some unused import warnings
46 libraries/time_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-imports
48 # haskeline has warnings about deprecated use of block/unblock
49 libraries/haskeline_dist-install_EXTRA_HC_OPTS += -fno-warn-deprecations
50 libraries/haskeline_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-imports
52 # Temporarily turn off unused-import warnings for the binary package
53 libraries/binary_dist-boot_EXTRA_HC_OPTS += -fno-warn-unused-imports
54 libraries/binary_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-imports
55 # binary has unusable UNPACK pragmas
56 libraries/binary_dist-boot_EXTRA_HC_OPTS += -Wwarn
57 libraries/binary_dist-install_EXTRA_HC_OPTS += -Wwarn
59 libraries/dph/dph-base_dist-install_EXTRA_HC_OPTS += -Wwarn
60 libraries/dph/dph-prim-interface_dist-install_EXTRA_HC_OPTS += -Wwarn
61 libraries/dph/dph-prim-seq_dist-install_EXTRA_HC_OPTS += -Wwarn
62 libraries/dph/dph-prim-par_dist-install_EXTRA_HC_OPTS += -Wwarn
63 libraries/dph/dph-seq_dist-install_EXTRA_HC_OPTS += -Wwarn
64 libraries/dph/dph-par_dist-install_EXTRA_HC_OPTS += -Wwarn