diff options
Diffstat (limited to 'testsuite/mk')
-rw-r--r-- | testsuite/mk/boilerplate.mk | 13 |
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 |