TH doesn't work in a stage 1 compiler
authorIan Lynagh <igloo@earth.li>
Wed, 13 Jul 2011 18:52:07 +0000 (19:52 +0100)
committerIan Lynagh <igloo@earth.li>
Wed, 13 Jul 2011 18:52:07 +0000 (19:52 +0100)
testsuite/mk/test.mk

index 2e2b8d0..4ca1c4e 100644 (file)
@@ -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))