summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-08-23 17:20:48 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-08-23 19:20:11 +0200
commita9eab37da2e6a282c5246b2230171cd80f866731 (patch)
tree9126d35b126f57a89e9976582b74aa2c30a9cdce
parent80102356468d87b683d5360a291c44b057a52ade (diff)
downloadhaskell-wip/alpine-fix2.tar.gz
Fix redundant importwip/alpine-fix2
This fixes a build error on x86_64-linux-alpine3_12-validate. See the function 'loadExternalPlugins' defined in this file.
-rw-r--r--compiler/GHC/Driver/Plugins.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Plugins.hs b/compiler/GHC/Driver/Plugins.hs
index d260c9c206..cbe8ac9023 100644
--- a/compiler/GHC/Driver/Plugins.hs
+++ b/compiler/GHC/Driver/Plugins.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE CPP #-}
-#if defined(HAVE_INTERNAL_INTERPRETER)
+#if defined(HAVE_INTERNAL_INTERPRETER) && defined(CAN_LOAD_DLL)
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE UnboxedTuples #-}
@@ -103,7 +103,7 @@ import qualified Data.Semigroup
import Control.Monad
-#if defined(HAVE_INTERNAL_INTERPRETER)
+#if defined(HAVE_INTERNAL_INTERPRETER) && defined(CAN_LOAD_DLL)
import GHCi.ObjLink
import GHC.Exts (addrToAny#, Ptr(..))
import GHC.Utils.Encoding