diff options
-rw-r--r-- | compiler/GHC/Driver/Plugins.hs | 4 |
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 |