summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-02-25 01:00:48 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2016-02-25 23:26:06 +0100
commit8e6e022216b19b10841a896ee1a0b08e019a9481 (patch)
tree8b4241b6f50ac63ce83d46c7e4b0c2bd46ea9099 /testsuite/mk
parent116528c8429257a0ae855251fd266547bb23d01d (diff)
downloadhaskell-8e6e022216b19b10841a896ee1a0b08e019a9481.tar.gz
Testsuite: Introduce config.plugin_way_flags.
Refactoring only.
Diffstat (limited to 'testsuite/mk')
-rw-r--r--testsuite/mk/boilerplate.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/mk/boilerplate.mk b/testsuite/mk/boilerplate.mk
index b51cc89944..077d5031e1 100644
--- a/testsuite/mk/boilerplate.mk
+++ b/testsuite/mk/boilerplate.mk
@@ -247,6 +247,19 @@ ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
include $(ghc-config-mk)
endif
+# Note [WayFlags]
+#
+# Code that uses TemplateHaskell should either use -fexternal-interpreter, or
+# be built in the same way as the compiler (-prof, -dynamic or -static).
+#
+# We therefore add those flags to ghcThWayFlags and ghc_th_way_flags here and
+# in testsuite/config/ghc, and use them in all tests that use TemplateHaskell.
+#
+# The same applies to code loaded in regular GHCi, and code that uses the
+# plugin system.
+#
+# See #11495 and TEST=TH_spliceE5_prof for a complication: trying to compile
+# code that uses TemplateHaskell with -prof, while GhcDynamic=YES.
ifeq "$(GhcDynamic)" "YES"
ghcThWayFlags = -dynamic
ghciWayFlags = -dynamic