summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-06-21 16:56:20 +0800
committerGHC GitLab CI <ghc-ci@gitlab-haskell.org>2021-06-21 17:33:10 +0800
commit44125f04236177c69f1f4a5acf5d2594bd856523 (patch)
treefbbe69ba1287381ecb51c0b15f765b47f050ad60
parent588840980441334dda85bb5cb55e91849d8fbe0b (diff)
downloadhaskell-44125f04236177c69f1f4a5acf5d2594bd856523.tar.gz
[testsuite] provide -package template-haskell
If we expect to link against TH, we should tell GHC.
-rw-r--r--testsuite/tests/driver/recomp009/Makefile4
-rw-r--r--testsuite/tests/driver/th-new-test/Makefile11
2 files changed, 7 insertions, 8 deletions
diff --git a/testsuite/tests/driver/recomp009/Makefile b/testsuite/tests/driver/recomp009/Makefile
index dea8ddd179..992b2c1970 100644
--- a/testsuite/tests/driver/recomp009/Makefile
+++ b/testsuite/tests/driver/recomp009/Makefile
@@ -14,9 +14,9 @@ clean:
recomp009: clean
cp Sub1.hs Sub.hs
- '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 --make Main.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 --make Main.hs -package template-haskell
./Main
sleep 1
cp Sub2.hs Sub.hs
- -'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 --make Main.hs
+ -'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 --make Main.hs -package template-haskell
./Main
diff --git a/testsuite/tests/driver/th-new-test/Makefile b/testsuite/tests/driver/th-new-test/Makefile
index 63b10db4aa..acd75e1780 100644
--- a/testsuite/tests/driver/th-new-test/Makefile
+++ b/testsuite/tests/driver/th-new-test/Makefile
@@ -11,19 +11,18 @@ clean:
rm -f *.dyn_hi*
th-new-test: clean
- '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths
+ '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths -package template-haskell
# No recompilation
- '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths
+ '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths -package template-haskell
cp B.hs B_O.hs
cp B1.hs B.hs
# Recompile just B and A
- '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths
+ '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths -package template-haskell
cp D.hs D_O.hs
cp D1.hs D.hs
# Recompile just D and C
- '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths
+ '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths -package template-haskell
cp D_O.hs D.hs
cp B_O.hs B.hs
# Recompile A B C D
- '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths
-
+ '$(TEST_HC)' $(TEST_HC_OPTS) --make Main.hs -fhide-source-paths -package template-haskell