summaryrefslogtreecommitdiff
path: root/hadrian/ghci-cabal.in
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2020-07-04 16:49:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-07 13:56:06 -0400
commit9615343363a68313c4bfdb068696002ecca7786e (patch)
treea0d8c7b6a6a5644f7ee71d838fa52892e924f16f /hadrian/ghci-cabal.in
parent0effc57d48ace6b719a9f4cbeac67c95ad55010b (diff)
downloadhaskell-9615343363a68313c4bfdb068696002ecca7786e.tar.gz
hadrian: make hadrian/ghci use the bootstrap compiler from configure #18190
Diffstat (limited to 'hadrian/ghci-cabal.in')
-rwxr-xr-xhadrian/ghci-cabal.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/hadrian/ghci-cabal.in b/hadrian/ghci-cabal.in
new file mode 100755
index 0000000000..2a97b37180
--- /dev/null
+++ b/hadrian/ghci-cabal.in
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+# This file is generated by configure from ghci-cabal.in
+
+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:ghc/Main.hs -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci $HADRIAN_ARGS | tr '\n\r' ' ')"
+@WithGhc@ --interactive $GHC_FLAGS $@ -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 +RTS -A128m