diff options
author | Ian Lynagh <igloo@earth.li> | 2011-07-13 19:52:07 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-07-13 19:52:07 +0100 |
commit | 04801365acedbe8f9d8436d098284c99318ac367 (patch) | |
tree | 5169c2cb52dd58978c8de182c78104cea01a2c2b /testsuite/mk/test.mk | |
parent | e182041fbfc38e97d273469b402c5bb36718c0e4 (diff) | |
download | haskell-04801365acedbe8f9d8436d098284c99318ac367.tar.gz |
TH doesn't work in a stage 1 compiler
Diffstat (limited to 'testsuite/mk/test.mk')
-rw-r--r-- | testsuite/mk/test.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 2e2b8d0827..4ca1c4e0f9 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -69,11 +69,14 @@ else RUNTEST_OPTS += -e ghc_with_dynamic_rts=0 endif +$(eval $(call get-ghc-field,GhcStage,Stage)) $(eval $(call get-ghc-feature-bool,GhcWithInterpreter,Have interpreter)) -ifeq "$(GhcWithInterpreter)" "YES" -RUNTEST_OPTS += -e ghc_with_interpreter=1 -else +ifeq "$(GhcWithInterpreter)" "NO" +RUNTEST_OPTS += -e ghc_with_interpreter=0 +else ifeq "$(GhcStage)" "1" RUNTEST_OPTS += -e ghc_with_interpreter=0 +else +RUNTEST_OPTS += -e ghc_with_interpreter=1 endif $(eval $(call get-ghc-feature-bool,GhcUnregisterised,Unregisterised)) |