summaryrefslogtreecommitdiff
path: root/compiler/GHC/Linker
diff options
context:
space:
mode:
authorTito Sacchi <tito.sakki@gmail.com>2021-08-02 14:56:27 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-08-03 17:19:14 -0400
commit9744c6f5c37c8b85f95e53f109b7ce6c25881c29 (patch)
tree8890b4e80c2f7dbc7f6556ea8ce5a7d7bf29ebba /compiler/GHC/Linker
parent5155eafaef2d0cbecd58a808b5b357002a656ffe (diff)
downloadhaskell-9744c6f5c37c8b85f95e53f109b7ce6c25881c29.tar.gz
Correctly unload libs on GHCi with external iserv
Fix #17669 `hostIsDynamic` is basically a compile-time constant embedded in the RTS. Therefore, GHCi didn't unload object files properly when used with an external interpreter built in a different way.
Diffstat (limited to 'compiler/GHC/Linker')
-rw-r--r--compiler/GHC/Linker/Loader.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Linker/Loader.hs b/compiler/GHC/Linker/Loader.hs
index 2c2e724d68..45ef0b3daa 100644
--- a/compiler/GHC/Linker/Loader.hs
+++ b/compiler/GHC/Linker/Loader.hs
@@ -1189,7 +1189,7 @@ unload_wkr interp keep_linkables pls@LoaderState{..} = do
where
unloadObjs :: Linkable -> IO ()
unloadObjs lnk
- | hostIsDynamic = return ()
+ | interpreterDynamic interp = return ()
-- We don't do any cleanup when linking objects with the
-- dynamic linker. Doing so introduces extra complexity for
-- not much benefit.