summaryrefslogtreecommitdiff
path: root/hadrian/ghci-cabal.in
blob: 2a97b371802ba85364831abd12e74a7fef08dc09 (plain)
1
2
3
4
5
6
7
8
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