summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-09-15 12:05:11 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-16 04:54:38 -0400
commitb695e7d73617ab19170d37b383315e8ede289c5e (patch)
tree21e449b1385d785f859f8cb5ff93b8fc7244c581 /hadrian
parentce42e187ebfc81174ed477f247f023ae094c9b24 (diff)
downloadhaskell-b695e7d73617ab19170d37b383315e8ede289c5e.tar.gz
Rename ghci flag into internal-interpreter
"ghci" as a flag name was confusing because it really enables the internal-interpreter. Even the ghci library had a "ghci" flag...
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Settings/Packages.hs15
1 files changed, 8 insertions, 7 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs
index 026758b2b7..e40d5115ef 100644
--- a/hadrian/src/Settings/Packages.hs
+++ b/hadrian/src/Settings/Packages.hs
@@ -73,7 +73,7 @@ packageArgs = do
notStage0 ? arg "--ghc-pkg-option=--force" ]
, builder (Cabal Flags) ? mconcat
- [ ghcWithInterpreter ? notStage0 ? arg "ghci"
+ [ ghcWithInterpreter ? notStage0 ? arg "internal-interpreter"
, cross ? arg "-terminfo"
]
@@ -84,7 +84,7 @@ packageArgs = do
[ builder Ghc ? arg ("-I" ++ compilerPath)
, builder (Cabal Flags) ? mconcat
- [ ghcWithInterpreter ? notStage0 ? arg "ghci"
+ [ ghcWithInterpreter ? notStage0 ? arg "internal-interpreter"
, cross ? arg "-terminfo"
-- Note [Linking ghc-bin against threaded stage0 RTS]
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -121,13 +121,13 @@ packageArgs = do
--------------------------------- ghci ---------------------------------
, package ghci ? mconcat
- [ notStage0 ? builder (Cabal Flags) ? arg "ghci"
+ [ notStage0 ? builder (Cabal Flags) ? arg "internal-interpreter"
- -- The use case here is that we want to build @ghc-proxy@ for the
+ -- The use case here is that we want to build @iserv-proxy@ for the
-- cross compiler. That one needs to be compiled by the bootstrap
-- compiler as it needs to run on the host. Hence @libiserv@ needs
-- @GHCi.TH@, @GHCi.Message@ and @GHCi.Run@ from @ghci@. And those are
- -- behind the @-fghci@ flag.
+ -- behind the @-finternal-interpreter@ flag.
--
-- But it may not build if we have made some changes to ghci's
-- dependencies (see #16051).
@@ -142,13 +142,14 @@ packageArgs = do
--
-- The workaround we use is to check if the bootstrap compiler has
-- the same version as the one we are building. In this case we can
- -- avoid the first step above and directly build with `-fghci`.
+ -- avoid the first step above and directly build with
+ -- `-finternal-interpreter`.
--
-- TODO: Note that in that case we also do not need to build most of
-- the Stage1 libraries, as we already know that the bootstrap
-- compiler comes with the same versions as the one we are building.
--
- , cross ? stage0 ? bootCross ? builder (Cabal Flags) ? arg "ghci"
+ , cross ? stage0 ? bootCross ? builder (Cabal Flags) ? arg "internal-interpreter"
]