summaryrefslogtreecommitdiff
path: root/hadrian/ghci-cabal
blob: 2ee70427c334f8a27f130482c91b181a195fc6e9 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env sh

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