summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-11-18 14:41:26 -0500
committerBen Gamari <ben@smart-cactus.org>2020-11-18 14:42:12 -0500
commita7da5b7d0973b2797e75b039e13961387f20c53f (patch)
treee6e06a7426e9cc49517b2e4ef22d54942094a9b9
parent44c0fdf15e04437fdf73a290927e17e9898fcd73 (diff)
downloadhaskell-wip/make-verbosity.tar.gz
gitlab-ci: Add VERBOSE environment variablewip/make-verbosity
And change the make build system's default behavior to V=0, greatly reducing build log sizes.
-rwxr-xr-x.gitlab/ci.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 5bcc6f5c5b..ffab2845c9 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -43,6 +43,7 @@ Hadrian build system
Environment variables affecting both build systems:
+ VERBOSE Set to non-empty for verbose build output
MSYSTEM (Windows-only) Which platform to build form (MINGW64 or MINGW32).
Environment variables determining build configuration of Make system:
@@ -398,6 +399,11 @@ function build_make() {
if [[ -z "$BIN_DIST_PREP_TAR_COMP" ]]; then
fail "BIN_DIST_PREP_TAR_COMP is not set"
fi
+ if [[ -n "$VERBOSE" ]]; then
+ MAKE_ARGS="$MAKE_ARGS V=1"
+ else
+ MAKE_ARGS="$MAKE_ARGS V=0"
+ fi
echo "include mk/flavours/${BUILD_FLAVOUR}.mk" > mk/build.mk
echo 'GhcLibHcOpts+=-haddock' >> mk/build.mk
@@ -491,6 +497,7 @@ function clean() {
function run_hadrian() {
if [ -z "$BIGNUM_BACKEND" ]; then BIGNUM_BACKEND="gmp"; fi
+ if [ -n "$VERBOSE" ]; then HADRIAN_ARGS="$HADRIAN_ARGS -V"; fi
run hadrian/build-cabal \
--flavour="$BUILD_FLAVOUR" \
-j"$cores" \