diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-07-26 11:20:39 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-08-03 15:21:30 +0100 |
commit | 36e21d46e388324ae09d849592208251a8b3d0f9 (patch) | |
tree | bb53148c8daa0cb09cf3e4f97d45e4d907c13068 /compiler/GHC/Driver/Backpack.hs | |
parent | 9a08b073969d191430558431e8f7c3a8a8ef31f9 (diff) | |
download | haskell-wip/module-loops.tar.gz |
Store interfaces in ModIfaceCache more directlywip/module-loops
I realised hydration was completely irrelavant for this cache because
the ModDetails are pruned from the result. So now it simplifies things a
lot to just store the ModIface and Linkable, which we can put into the
cache straight away rather than wait for the final version of a
HomeModInfo to appear.
Diffstat (limited to 'compiler/GHC/Driver/Backpack.hs')
-rw-r--r-- | compiler/GHC/Driver/Backpack.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Backpack.hs b/compiler/GHC/Driver/Backpack.hs index 09a5678796..81aa0c50fe 100644 --- a/compiler/GHC/Driver/Backpack.hs +++ b/compiler/GHC/Driver/Backpack.hs @@ -328,7 +328,7 @@ buildUnit session cid insts lunit = do mod_graph <- hsunitModuleGraph False (unLoc lunit) msg <- mkBackpackMsg - ok <- load' noHomeCache LoadAllTargets (Just msg) mod_graph + ok <- load' noIfaceCache LoadAllTargets (Just msg) mod_graph when (failed ok) (liftIO $ exitWith (ExitFailure 1)) let hi_dir = expectJust (panic "hiDir Backpack") $ hiDir dflags @@ -417,7 +417,7 @@ compileExe lunit = do withBkpExeSession deps_w_rns $ do mod_graph <- hsunitModuleGraph True (unLoc lunit) msg <- mkBackpackMsg - ok <- load' noHomeCache LoadAllTargets (Just msg) mod_graph + ok <- load' noIfaceCache LoadAllTargets (Just msg) mod_graph when (failed ok) (liftIO $ exitWith (ExitFailure 1)) -- | Register a new virtual unit database containing a single unit |