validate.mk 1.48 KB
Newer Older
1
SRC_HC_OPTS        = -O0 -H64m
2
SRC_HC_OPTS_STAGE1 = -fllvm-fill-undef-with-garbage   # See Trac 11487
3
GhcStage1HcOpts    = -O -DDEBUG
4
5
6
7
8
GhcStage2HcOpts    = -O -dcore-lint
GhcLibHcOpts       = -O -dcore-lint
BUILD_PROF_LIBS    = NO
SplitObjs          = NO
HADDOCK_DOCS       = YES
9
10
BUILD_SPHINX_HTML  = YES
BUILD_SPHINX_PDF   = NO
11
12
13
14

ifeq "$(ValidateHpc)" "YES"
GhcStage2HcOpts   += -fhpc -hpcdir $(TOP)/testsuite/hpc_output/
endif
15

16
17
18
19
ifeq "$(ValidateSpeed)" "SLOW"
GhcStage2HcOpts   += -DDEBUG
endif

20
21
22
23
ifeq "$(ValidateSpeed)" "SLOW"
BUILD_PROF_LIBS    = YES
endif

24
ifneq "$(ValidateSpeed)" "FAST"
25
BUILD_EXTRA_PKGS   = YES
26
endif
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

WERROR             = -Werror

# DO NOT EDIT THIS FILE! Instead, create a file mk/validate.mk, whose settings
# will override these. See also mk/custom-settings.mk.
#
#
# (Note: these comments are at the end of this file, to make it easier to diff
# this file with other build flavours.)
#
#
# Note [validate build settings]
#
# Using GhcStage2HcOpts=-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
#
# dblatex with miktex under msys/mingw can't build the PS and PDF docs,
# and just building the HTML docs is sufficient to check that the
# markup is correct, so we turn off PS and PDF doc building when
# validating.
#
50
51
# We set BUILD_EXTRA_PKGS=YES to build the "extra" packages (see ./packages),
# so that we can test them.