diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-04-19 18:39:04 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-23 11:40:02 -0400 |
commit | 339e8ece1c844af5c9165efbc3a928890c2f75c7 (patch) | |
tree | 5ba01d30f9aa6df676ee2f70f410bc0091f8c003 | |
parent | cd8409c26d4370bf2cdcd76801974e99a9adf7b0 (diff) | |
download | haskell-339e8ece1c844af5c9165efbc3a928890c2f75c7.tar.gz |
hadrian/ghci: Allow arguments to be passed to GHCi
Previously the arguments passed to hadrian/ghci were passed both to
`hadrian` and GHCi. This is rather odd given that there are essentially
not arguments in the intersection of the two. Let's just pass them to
GHCi; this allows `hadrian/ghci -Werror`.
-rwxr-xr-x | hadrian/ghci | 2 | ||||
-rwxr-xr-x | hadrian/ghci-cabal | 4 | ||||
-rwxr-xr-x | hadrian/ghci-stack | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/hadrian/ghci b/hadrian/ghci index b395de4f08..707e87059d 100755 --- a/hadrian/ghci +++ b/hadrian/ghci @@ -1,4 +1,4 @@ #!/usr/bin/env bash # By default on Linux/MacOS we build Hadrian using Cabal -(. "hadrian/ghci-cabal" "$@") +(. "hadrian/ghci-cabal" $@) diff --git a/hadrian/ghci-cabal b/hadrian/ghci-cabal index 2ee70427c3..28b6cfae01 100755 --- a/hadrian/ghci-cabal +++ b/hadrian/ghci-cabal @@ -3,5 +3,5 @@ set -e # Replace newlines with spaces, as these otherwise break the ghci invocation on windows. -GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-cabal" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@" | tr '\n\r' ' ')" -ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m +GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-cabal" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci $HADRIAN_ARGS | tr '\n\r' ' ')" +ghci $GHC_FLAGS $@ -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m diff --git a/hadrian/ghci-stack b/hadrian/ghci-stack index 92b5229328..53fdeddad5 100755 --- a/hadrian/ghci-stack +++ b/hadrian/ghci-stack @@ -3,5 +3,5 @@ set -e # Replace newlines with spaces, as these otherwise break the ghci invocation on windows. -GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-stack" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@" | tr '\n\r' ' ')" +GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-stack" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci $HADRIAN_ARGS | tr '\n\r' ' ')" stack exec -- ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m |