summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-03-16 19:45:56 -0400
committerBen Gamari <ben@well-typed.com>2022-03-16 20:18:51 -0400
commitac41b3415bfe8dac52d659bfa9488706fcf92eeb (patch)
tree7d49f1304d8bb0303a41b6134b75e96f32fba69a
parente645454977508992fba22f5ce265a784598b8818 (diff)
downloadhaskell-ac41b3415bfe8dac52d659bfa9488706fcf92eeb.tar.gz
HACK: hadrian: Disable ghci libraries
-rw-r--r--hadrian/src/Rules/Register.hs2
-rw-r--r--hadrian/src/Settings/Builders/Cabal.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Rules/Register.hs b/hadrian/src/Rules/Register.hs
index c2091e0fda..ec456afbfe 100644
--- a/hadrian/src/Rules/Register.hs
+++ b/hadrian/src/Rules/Register.hs
@@ -211,5 +211,5 @@ libraryTargets includeGhciLib context@Context {..} = do
else return False
extra <- extraTargets context
return $ [ libFile ]
- ++ [ ghciLib | ghci ]
+ ++ [ ghciLib | ghci && False ]
++ extra
diff --git a/hadrian/src/Settings/Builders/Cabal.hs b/hadrian/src/Settings/Builders/Cabal.hs
index 19bc8c315e..cce7d7d3c7 100644
--- a/hadrian/src/Settings/Builders/Cabal.hs
+++ b/hadrian/src/Settings/Builders/Cabal.hs
@@ -90,7 +90,7 @@ libraryArgs = do
then "--enable-library-profiling"
else "--disable-library-profiling"
, if (hasVanilla || hasProfiling) &&
- package /= rts && withGhci && not dynPrograms
+ package /= rts && withGhci && not dynPrograms && False
then "--enable-library-for-ghci"
else "--disable-library-for-ghci"
, if hasDynamic