[Git][ghc/ghc][master] GHC: fix reference to function in Note [Target code interpreter]

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Feb 18 13:56:37 UTC 2025



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
c9ffcfee by sternenseemann at 2025-02-18T08:55:14-05:00
GHC: fix reference to function in Note [Target code interpreter]

As far as I could tell, setSessionDynFlags doesn't deal with hsc_interp.
Also added a backreference so this will be updated in the future.

- - - - -


2 changed files:

- compiler/GHC.hs
- compiler/GHC/Driver/Env.hs


Changes:

=====================================
compiler/GHC.hs
=====================================
@@ -706,7 +706,7 @@ setTopSessionDynFlags dflags = do
   logger  <- getLogger
   lookup_cache  <- liftIO $ mkInterpSymbolCache
 
-  -- Interpreter
+  -- see Note [Target code interpreter]
   interp <- if
     -- Wasm dynamic linker
     | ArchWasm32 <- platformArch $ targetPlatform dflags


=====================================
compiler/GHC/Driver/Env.hs
=====================================
@@ -159,7 +159,7 @@ used.
 The target code interpreter to use can be selected per session via the
 `hsc_interp` field of `HscEnv`. There may be no interpreter available at all, in
 which case Template Haskell and GHCi will fail to run. The interpreter to use is
-configured via command-line flags (in `GHC.setSessionDynFlags`).
+configured via command-line flags (in `GHC.setTopSessionDynFlags`).
 
 
 -}



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c9ffcfeec2da8abee9456cd7c64e7c51fd01635e

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c9ffcfeec2da8abee9456cd7c64e7c51fd01635e
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250218/c363428e/attachment-0001.html>


More information about the ghc-commits mailing list