@@ -767,22 +767,6 @@ configure (pkg_descr0, pbi) cfg = do
767
767
)
768
768
return False
769
769
770
- let compilerSupportsGhciLibs :: Bool
771
- compilerSupportsGhciLibs =
772
- case compilerId comp of
773
- CompilerId GHC version
774
- | version > mkVersion [9 , 3 ] && windows ->
775
- False
776
- CompilerId GHC _ ->
777
- True
778
- CompilerId GHCJS _ ->
779
- True
780
- _ -> False
781
- where
782
- windows = case compPlatform of
783
- Platform _ Windows -> True
784
- Platform _ _ -> False
785
-
786
770
let ghciLibByDefault =
787
771
case compilerId comp of
788
772
CompilerId GHC _ ->
@@ -799,15 +783,6 @@ configure (pkg_descr0, pbi) cfg = do
799
783
not (GHCJS. isDynamic comp)
800
784
_ -> False
801
785
802
- withGHCiLib_ <-
803
- case fromFlagOrDefault ghciLibByDefault (configGHCiLib cfg) of
804
- True | not compilerSupportsGhciLibs -> do
805
- warn verbosity $
806
- " --enable-library-for-ghci is no longer supported on Windows with"
807
- ++ " GHC 9.4 and later; ignoring..."
808
- return False
809
- v -> return v
810
-
811
786
let sharedLibsByDefault
812
787
| fromFlag (configDynExe cfg) =
813
788
-- build a shared library if dynamically-linked
@@ -912,7 +887,7 @@ configure (pkg_descr0, pbi) cfg = do
912
887
, withProfExeDetail = ProfDetailNone
913
888
, withOptimization = fromFlag $ configOptimization cfg
914
889
, withDebugInfo = fromFlag $ configDebugInfo cfg
915
- , withGHCiLib = withGHCiLib_
890
+ , withGHCiLib = fromFlagOrDefault ghciLibByDefault $ configGHCiLib cfg
916
891
, splitSections = split_sections
917
892
, splitObjs = split_objs
918
893
, stripExes = strip_exe
0 commit comments