Skip to content

Commit ae739fa

Browse files
avargitster
authored andcommitted
CI: add more variables to MAKEFLAGS, except under vs-build
It's clearer that "DEVELOPER" is a flag that affects the Makefile itself in particular if it's put into "MAKEFLAGS than" if it generically sits in the environment. Let's move both it and "SKIP_DASHED_BUILT_INS" to "MAKEFLAGS". We can't do this under vs-build, since that invokes cmake. Let's have only that job set these in the environment. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8a488bd commit ae739fa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ci/lib.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ setenv () {
5555
# Clear MAKEFLAGS that may come from the outside world.
5656
MAKEFLAGS=
5757

58+
# Common make and cmake build options
59+
DEVELOPER=1
60+
SKIP_DASHED_BUILT_INS=YesPlease
61+
62+
# Use common options for "make" (cmake in "vs-build" below)
63+
MAKEFLAGS="DEVELOPER=$DEVELOPER SKIP_DASHED_BUILT_INS=$SKIP_DASHED_BUILT_INS"
64+
5865
case "$CI_TYPE" in
5966
github-actions)
6067
CC="${CC:-gcc}"
@@ -73,10 +80,8 @@ github-actions)
7380
;;
7481
esac
7582

76-
setenv --build DEVELOPER 1
7783
setenv --test DEFAULT_TEST_TARGET prove
7884
setenv --test GIT_TEST_CLONE_2GB true
79-
setenv --build SKIP_DASHED_BUILT_INS YesPlease
8085

8186
case "$runs_on_pool" in
8287
ubuntu-latest)
@@ -110,6 +115,9 @@ windows-build)
110115
setenv --build ARTIFACTS_DIRECTORY artifacts
111116
;;
112117
vs-build)
118+
setenv --build DEVELOPER $DEVELOPER
119+
setenv --build SKIP_DASHED_BUILT_INS $SKIP_DASHED_BUILT_INS
120+
113121
setenv --build NO_PERL NoThanks
114122
setenv --build NO_GETTEXT NoThanks
115123
setenv --build ARTIFACTS_DIRECTORY artifacts

0 commit comments

Comments
 (0)