summaryrefslogtreecommitdiff
path: root/ghc/Main.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-12 15:38:58 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-14 03:35:44 -0500
commitbc5cb5f900941085e5e22f3e8cafa4deea3b589c (patch)
tree2384fd8c7bc19375b4306aec3ad55769aba626a8 /ghc/Main.hs
parent72f230837ef166d4c931621b484471090d5338f6 (diff)
downloadhaskell-bc5cb5f900941085e5e22f3e8cafa4deea3b589c.tar.gz
Drop GHC_LOADED_IN_GHCI
This previously supported the ghc-in-ghci script which has been since dropped. Hadrian's ghci support does not need this macro (which disabled uses of UnboxedTuples) since it uses `-fno-code` rather than produce bytecode.
Diffstat (limited to 'ghc/Main.hs')
-rw-r--r--ghc/Main.hs13
1 files changed, 0 insertions, 13 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs
index a916820015..2626d78924 100644
--- a/ghc/Main.hs
+++ b/ghc/Main.hs
@@ -893,18 +893,5 @@ people since we're linking GHC dynamically, but most things themselves
link statically.
-}
--- If GHC_LOADED_INTO_GHCI is not set when GHC is loaded into GHCi, then
--- running it causes an error like this:
---
--- Loading temp shared object failed:
--- /tmp/ghc13836_0/libghc_1872.so: undefined symbol: initGCStatistics
---
--- Skipping the foreign call fixes this problem, and the outer GHCi
--- should have already made this call anyway.
-#if defined(GHC_LOADED_INTO_GHCI)
-initGCStatistics :: IO ()
-initGCStatistics = return ()
-#else
foreign import ccall safe "initGCStatistics"
initGCStatistics :: IO ()
-#endif