projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split up Cabal configure flag variables for more flexibility
[ghc-hetmet.git]
/
mk
/
validate-settings.mk
diff --git
a/mk/validate-settings.mk
b/mk/validate-settings.mk
index
bf665ff
..
83995e5
100644
(file)
--- a/
mk/validate-settings.mk
+++ b/
mk/validate-settings.mk
@@
-1,9
+1,12
@@
+WERROR = -Werror
+
HADDOCK_DOCS = YES
HADDOCK_DOCS = YES
-SRC_CC_OPTS = -Werror
-SRC_HC_OPTS = -Werror -H64m -Onot -fasm
+SRC_CC_OPTS = $(WERROR)
+SRC_HC_OPTS = $(WERROR) -H64m -O0 -fasm
GhcStage1HcOpts = -O -fasm
GhcStage1HcOpts = -O -fasm
-GhcStage2HcOpts = -Onot -fasm
+
+GhcStage2HcOpts = -O0 -fasm
GhcLibHcOpts = -O -fasm -dcore-lint
GhcLibWays =
SplitObjs = NO
GhcLibHcOpts = -O -fasm -dcore-lint
GhcLibWays =
SplitObjs = NO
@@
-11,3
+14,11
@@
NoFibWays =
STRIP = :
GhcBootLibs = YES
STRIP = :
GhcBootLibs = YES
+ifeq "$(ValidateHpc)" "YES"
+GhcStage2HcOpts += -fhpc -hpcdir $(FPTOOLS_TOP_ABS)/testsuite/hpc_output/
+endif
+ifeq "$(ValidateSlow)" "YES"
+GhcStage2HcOpts += -XGenerics -DDEBUG
+GhcLibHcOpts += -XGenerics
+endif
+