[Git][ghc/ghc][wip/ghc-8.10-backports] gitlab-ci: Add VERBOSE environment variable
Ben Gamari
gitlab at gitlab.haskell.org
Sun Nov 29 15:28:00 UTC 2020
Ben Gamari pushed to branch wip/ghc-8.10-backports at Glasgow Haskell Compiler / GHC
Commits:
d3458ac8 by Ben Gamari at 2020-11-29T10:27:15-05:00
gitlab-ci: Add VERBOSE environment variable
And change the make build system's default behavior to V=0, greatly
reducing build log sizes.
(cherry picked from commit 802e9180dd9a9a88c4e8869f0de1048e1edd6343)
- - - - -
1 changed file:
- .gitlab/ci.sh
Changes:
=====================================
.gitlab/ci.sh
=====================================
@@ -348,6 +348,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
@@ -402,6 +407,7 @@ function clean() {
}
function run_hadrian() {
+ if [ -n "$VERBOSE" ]; then HADRIAN_ARGS="$HADRIAN_ARGS -V"; fi
run hadrian/build.cabal.sh \
--flavour="$FLAVOUR" \
-j"$cores" \
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d3458ac8e1a4cae1cacf25309072bebb7bac70f1
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d3458ac8e1a4cae1cacf25309072bebb7bac70f1
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/20201129/741ba620/attachment.html>
More information about the ghc-commits
mailing list