From a9eab37da2e6a282c5246b2230171cd80f866731 Mon Sep 17 00:00:00 2001 From: Krzysztof Gogolewski Date: Tue, 23 Aug 2022 17:20:48 +0200 Subject: Fix redundant import This fixes a build error on x86_64-linux-alpine3_12-validate. See the function 'loadExternalPlugins' defined in this file. --- compiler/GHC/Driver/Plugins.hs | 4 ++-- 1 file 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 -- cgit v1.2.1