summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-09-20 22:51:19 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-23 16:00:18 -0400
commit6716a4bdde35ad1e13169052e4a1dcca110db3d1 (patch)
treef62a9397886d09da2f1e3080343188fa0e40ce5b /.gitlab
parente78752df0cb5c22826d75751229b017b58f6dcab (diff)
downloadhaskell-6716a4bdde35ad1e13169052e4a1dcca110db3d1.tar.gz
gitlab-ci: Unset MACOSX_DEPLOYMENT_TARGET in stage0 build
Otherwise we may get warnings from the toolchain if the bootstrap compiler was built with a different deployment target.
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 92a878546f..c68d847135 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -452,6 +452,9 @@ function build_hadrian() {
fail "BIN_DIST_NAME not set"
fi
+ # N.B. First build Hadrian, unsetting MACOSX_DEPLOYMENT_TARGET which may warn
+ # if the bootstrap libraries were built with a different version expectation.
+ MACOSX_DEPLOYMENT_TARGET="" run_hadrian stage1:exe:ghc-bin
run_hadrian binary-dist
mv _build/bindist/ghc*.tar.xz "$BIN_DIST_NAME.tar.xz"