diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2017-07-03 16:54:29 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-07-03 18:58:11 -0400 |
commit | d55bea14c745f7f448fb24673a21b511d1c1c222 (patch) | |
tree | ce5dca5e7ee1e044160d1ba9146235717fcc3f18 /compiler/main/GhcMake.hs | |
parent | c3a78623cf7bb74c8ca0749f1216e802aa37a721 (diff) | |
download | haskell-d55bea14c745f7f448fb24673a21b511d1c1c222.tar.gz |
Fix -fno-code for modules that use -XQuasiQuotes
In commit 53c78be0aab76a3107c4dacbb1d177afacdd37fa object code is
generated for modules depended on by modules that use -XTemplateHaskell.
This turns the same logic on for modules that use -XQuasiQuotes.
A test is added.
Note that I've based this of D3646, as it has a function I want to use.
Test Plan: ./validate
Reviewers: austin, bgamari, alexbiehl
Reviewed By: alexbiehl
Subscribers: alexbiehl, rwbarton, thomie
GHC Trac Issues: #13863
Differential Revision: https://phabricator.haskell.org/D3677
Diffstat (limited to 'compiler/main/GhcMake.hs')
-rw-r--r-- | compiler/main/GhcMake.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/GhcMake.hs b/compiler/main/GhcMake.hs index 134a0607bc..5935a771a7 100644 --- a/compiler/main/GhcMake.hs +++ b/compiler/main/GhcMake.hs @@ -1994,7 +1994,7 @@ enableCodeGenForTH target nodemap = [ ms | mss <- Map.elems nodemap , Right ms <- mss - , xopt LangExt.TemplateHaskell (ms_hspp_opts ms) + , needsTemplateHaskellOrQQ $ [ms] ] transitive_deps_set marked_mods modSums = foldl' go marked_mods modSums go marked_mods ms |