Skip to content

Commit 5db24cf

Browse files
committed
TEST ci(msvc): reduce the number of parallel jobs while building
This seems to help with the RAM usage of MSVC, manifested in the symptom: fatal error LNK1318: Unexpected PDB error; OK (0) '' Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d898579 commit 5db24cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/lib.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ then
116116
CI_OS_NAME="$(echo "$AGENT_OS" | tr A-Z a-z)"
117117
test darwin != "$CI_OS_NAME" || CI_OS_NAME=osx
118118
CI_REPO_SLUG="$(expr "$BUILD_REPOSITORY_URI" : '.*/\([^/]*/[^/]*\)$')"
119+
jobs=10
119120
if test -n "$MSVC"
120121
then
121122
CC=compat/vcbuild/scripts/clink.pl
122123
jobname=windows-msvc
124+
jobs=4
123125
fi
124126
CC="${CC:-gcc}"
125127

@@ -132,9 +134,9 @@ then
132134
}
133135

134136
BREW_INSTALL_PACKAGES=gcc@8
135-
export GIT_PROVE_OPTS="--timer --jobs 10 --state=failed,slow,save"
137+
export GIT_PROVE_OPTS="--timer --jobs $jobs --state=failed,slow,save"
136138
export GIT_TEST_OPTS="--verbose-log -x --write-junit-xml"
137-
MAKEFLAGS="$MAKEFLAGS --jobs=10"
139+
MAKEFLAGS="$MAKEFLAGS --jobs=$jobs"
138140
test windows_nt != "$CI_OS_NAME" ||
139141
GIT_TEST_OPTS="--no-chain-lint --no-bin-wrappers $GIT_TEST_OPTS"
140142
else

0 commit comments

Comments
 (0)