summaryrefslogtreecommitdiff
path: root/hadrian/ghci-cabal
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-04-19 18:39:04 -0400
committerBen Gamari <ben@smart-cactus.org>2020-04-20 13:05:37 -0400
commitf6cb3236612a2ebc0da7c61e2b528ab8da6ea630 (patch)
tree2b33f4c6fd1fb8584de052ade795538c8cc3f3e1 /hadrian/ghci-cabal
parentb43365ad62d73afd5c58467ab9a4f9523ab09c18 (diff)
downloadhaskell-wip/fix-hadrian-ghci.tar.gz
hadrian/ghci: Allow arguments to be passed to GHCiwip/fix-hadrian-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`.
Diffstat (limited to 'hadrian/ghci-cabal')
-rwxr-xr-xhadrian/ghci-cabal4
1 files changed, 2 insertions, 2 deletions
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