[Git][ghc/ghc][wip/andreask/tools_unlines] Turn newlines into spaces for hadrian/ghci.
Andreas Klebinger
gitlab at gitlab.haskell.org
Mon Mar 30 16:08:39 UTC 2020
Andreas Klebinger pushed to branch wip/andreask/tools_unlines at Glasgow Haskell Compiler / GHC
Commits:
4209209a by Andreas Klebinger at 2020-03-30T18:08:27+02:00
Turn newlines into spaces for hadrian/ghci.
The newlines break the command on windows.
- - - - -
2 changed files:
- hadrian/ghci-cabal
- hadrian/ghci-stack
Changes:
=====================================
hadrian/ghci-cabal
=====================================
@@ -2,5 +2,5 @@
set -e
-GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-cabal" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@")"
+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
=====================================
hadrian/ghci-stack
=====================================
@@ -2,5 +2,5 @@
set -e
-GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-stack" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@")"
+GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build-stack" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@" | tr '\n\r' ' ')"
stack exec -- ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4209209a73a4b9ff4e41a69809adb0c6e932ecc4
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4209209a73a4b9ff4e41a69809adb0c6e932ecc4
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200330/75d63a92/attachment.html>
More information about the ghc-commits
mailing list