summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/prog008/A.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-02-17 17:16:19 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-23 14:00:01 -0500
commit818ff2ef76908499454ceed94329c133a1aad918 (patch)
tree540250e9ee870c73987ae6bcbdf534caae0846a2 /testsuite/tests/ghci/prog008/A.hs
parent6215b04cc6d81ebaa86545e8b5701d1e54290325 (diff)
downloadhaskell-818ff2ef76908499454ceed94329c133a1aad918.tar.gz
driver: Remove needsTemplateHaskellOrQQ from ModuleGraph
The idea of the needsTemplateHaskellOrQQ query is to check if any of the modules in a module graph need Template Haskell then enable -dynamic-too if necessary. This is quite imprecise though as it will enable -dynamic-too for all modules in the module graph even if only one module uses template haskell, with multiple home units, this is obviously even worse. With -fno-code we already have similar logic to enable code generation just for the modules which are dependeded on my TemplateHaskell modules so we use the same code path to decide whether to enable -dynamic-too rather than using this big hammer. This is part of the larger overall goal of moving as much statically known configuration into the downsweep as possible in order to have fully decided the build plan and all the options before starting to build anything. I also included a fix to #21095, a long standing bug with with the logic which is supposed to enable the external interpreter if we don't have the internal interpreter. Fixes #20696 #21095
Diffstat (limited to 'testsuite/tests/ghci/prog008/A.hs')
0 files changed, 0 insertions, 0 deletions