diff options
author | Adam Sandberg Ericsson <adam@sandbergericsson.se> | 2020-07-04 16:49:57 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-07 13:56:06 -0400 |
commit | 9615343363a68313c4bfdb068696002ecca7786e (patch) | |
tree | a0d8c7b6a6a5644f7ee71d838fa52892e924f16f /hadrian/ghci-cabal.in | |
parent | 0effc57d48ace6b719a9f4cbeac67c95ad55010b (diff) | |
download | haskell-9615343363a68313c4bfdb068696002ecca7786e.tar.gz |
hadrian: make hadrian/ghci use the bootstrap compiler from configure #18190
Diffstat (limited to 'hadrian/ghci-cabal.in')
-rwxr-xr-x | hadrian/ghci-cabal.in | 9 |
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 |