diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-06-03 15:27:39 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-06-03 15:27:39 +0100 |
commit | 41c11f25cc55010482ff45e05ae7271a3107dd81 (patch) | |
tree | dd76c8b08a9050e17dfcc1c2b251951b6c3b82c0 | |
parent | 79d12d34ad7177d33b191305f2c0157349f97355 (diff) | |
download | haskell-wip/caching.tar.gz |
Add some tracing to CIwip/caching
-rwxr-xr-x | hadrian/build-cabal | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hadrian/build-cabal b/hadrian/build-cabal index 7d16f3e6b2..587566f780 100755 --- a/hadrian/build-cabal +++ b/hadrian/build-cabal @@ -2,7 +2,7 @@ CABAL="${CABAL:-cabal}" GHC="${GHC:-ghc}" -CABFLAGS=("--with-compiler=$GHC" "--disable-documentation" "--disable-profiling" "--disable-library-profiling" $CABFLAGS) +CABFLAGS=("--with-compiler=$GHC" "--disable-documentation" "--disable-profiling" "--disable-library-profiling" "-v2" $CABFLAGS) ( $GHC --info | grep -s '("Support SMP","YES")' > /dev/null ) || CABFLAGS+=("--constraint=hadrian -threaded") # It is currently more robust to pass Cabal an absolute path to the project file. @@ -23,6 +23,8 @@ fi CABVERSTR=$("$CABAL" --numeric-version) CABVER=( ${CABVERSTR//./ } ) +ls ~/.cabal/ + if [ "${CABVER[0]}" -gt 2 -o "${CABVER[0]}" -eq 2 -a "${CABVER[1]}" -ge 2 ]; then "$CABAL" --project-file="$PROJ" new-build "${CABFLAGS[@]}" -j exe:hadrian |