summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-01 17:59:27 +0000
committerIan Lynagh <igloo@earth.li>2008-07-01 17:59:27 +0000
commit982f6e5405eadb41860772ad0fe13ce0980fad2f (patch)
tree557e1c844753cf47dcb167f703d1bc9fc66b3cd7 /mk
parent4d7ac0e3227c408de20af4ef7898028863327492 (diff)
downloadhaskell-982f6e5405eadb41860772ad0fe13ce0980fad2f.tar.gz
Add --slow (and --fast) options to validate
slow mode is 14% slower than normal. It uses -DDEBUG for the stage 2 compiler, and -XGenerics for the stage 2 compiler and the libraries. I believe that most of the slowdown is actually caused by -XGenerics rather than -DDEBUG.
Diffstat (limited to 'mk')
-rw-r--r--mk/validate-settings.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index b49ba59a9a..83995e59f9 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -5,7 +5,8 @@ HADDOCK_DOCS = YES
SRC_CC_OPTS = $(WERROR)
SRC_HC_OPTS = $(WERROR) -H64m -O0 -fasm
GhcStage1HcOpts = -O -fasm
-GhcStage2HcOpts = -O0 -fasm $(ValidateHpcFlags)
+
+GhcStage2HcOpts = -O0 -fasm
GhcLibHcOpts = -O -fasm -dcore-lint
GhcLibWays =
SplitObjs = NO
@@ -13,3 +14,11 @@ NoFibWays =
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
+