summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/recomp012
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/driver/recomp012')
-rw-r--r--testsuite/tests/driver/recomp012/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/testsuite/tests/driver/recomp012/Makefile b/testsuite/tests/driver/recomp012/Makefile
index 180f08ddd8..83a745f641 100644
--- a/testsuite/tests/driver/recomp012/Makefile
+++ b/testsuite/tests/driver/recomp012/Makefile
@@ -2,10 +2,6 @@ TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
-# -fforce-recomp makes lots of driver tests trivially pass, so we
-# filter it out from $(TEST_HC_OPTS).
-TEST_HC_OPTS_NO_RECOMP = $(filter-out -fforce-recomp,$(TEST_HC_OPTS))
-
# Recompilation tests
clean:
@@ -19,12 +15,12 @@ recomp012: clean
echo 'module MyBool where data MyBool = MyFalse | MyTrue deriving Show' >MyBool.hs
echo 'module Foo where import MyBool; foo = MyFalse' > Foo.hs
echo 'import Foo; main = print foo' > Main.hs
- '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 -c -O2 MyBool.hs
- '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 -c -O2 Foo.hs
- '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 -O2 Main.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c -O2 MyBool.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c -O2 Foo.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O2 Main.hs
./Main
sleep 1
echo 'module Foo where import MyBool; foo = MyTrue' > Foo.hs
- '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 -c -O2 Foo.hs
- '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 -O2 Main.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c -O2 Foo.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -v0 -O2 Main.hs
./Main