diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2019-09-19 10:46:09 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2019-09-19 10:47:11 +0100 |
commit | c7896ba7bbe1268edf03ce4d113933b493520d1d (patch) | |
tree | 8eb520f4f74118d5443b06190723de00bf0905f5 | |
parent | b55ee979d32df938eee9c4c02c189f8be267e8a1 (diff) | |
download | haskell-c7896ba7bbe1268edf03ce4d113933b493520d1d.tar.gz |
hadrian/ghci.sh: Enable building in parallel
-rw-r--r-- | hadrian/README.md | 8 | ||||
-rwxr-xr-x | hadrian/ghci.sh | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/hadrian/README.md b/hadrian/README.md index 2a0ffafd4c..bc640cd5de 100644 --- a/hadrian/README.md +++ b/hadrian/README.md @@ -183,6 +183,14 @@ which will take 1-2 minutes. Loading GHC into GHCi itself takes about 30 seconds reloads after that take in the region of 1-5 seconds depending on which modules need to be recompiled. +You can further speed up the script by passing `-j` as an argument. This will +have the effect of passing `-j` to both hadrian and ghci so they will both +build in parallel. + +``` +./hadrian/ghci.sh -j8 +``` + #### Testing To run GHC testsuite, use `build test`. See diff --git a/hadrian/ghci.sh b/hadrian/ghci.sh index 90727b2d22..e296efa792 100755 --- a/hadrian/ghci.sh +++ b/hadrian/ghci.sh @@ -3,4 +3,4 @@ set -e GHC_FLAGS=$(TERM=dumb CABFLAGS=-v0 "hadrian/build.cabal.sh" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@") -ghci $GHC_FLAGS -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m |