summaryrefslogtreecommitdiff
path: root/compiler/GHC.hs
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2022-02-09 17:01:38 +0530
committerMatthew Pickering <matthewtpickering@gmail.com>2022-02-17 10:35:43 +0000
commit0afa19da629c6f2852e77e134902304b82a91e84 (patch)
tree418f657b01ccac353815a94172c840d3c27fef4d /compiler/GHC.hs
parent4127e86dfdfcfce60e5029c716c98c244851779a (diff)
downloadhaskell-wip/th-recomp.tar.gz
Track object file dependencies for TH accurately (#20604)wip/th-recomp
`hscCompileCoreExprHook` is changed to return a list of `Module`s required by a splice. These modules are accumulated in the TcGblEnv (tcg_th_needed_mods). Dependencies on the object files of these modules are recording in the interface. The data structures in `LoaderState` are replaced with more efficient versions to keep track of all the information required. The MultiLayerModulesTH_Make allocations increase slightly but runtime is faster. Fixes #20604 ------------------------- Metric Increase: MultiLayerModulesTH_Make -------------------------
Diffstat (limited to 'compiler/GHC.hs')
-rw-r--r--compiler/GHC.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC.hs b/compiler/GHC.hs
index 6fa90108b7..4d31ae1e3a 100644
--- a/compiler/GHC.hs
+++ b/compiler/GHC.hs
@@ -856,7 +856,7 @@ setInteractiveDynFlags dflags = do
-- Initialise (load) plugins in the interactive environment with the new
-- DynFlags
- plugin_env <- liftIO $ flip initializePlugins Nothing $ mkInteractiveHscEnv $
+ plugin_env <- liftIO $ initializePlugins $ mkInteractiveHscEnv $
hsc_env0 { hsc_IC = ic0 { ic_dflags = dflags'' }}
-- Update both plugins cache and DynFlags in the interactive context.