Skip to content

Commit b524c62

Browse files
nikicpietroalbini
authored andcommitted
Limit to one job on mingw builders
This is another attempt to work around rust-lang#108227. By limiting to one link job, we should be able to avoid file name clashes in mkstemp().
1 parent f18236d commit b524c62

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ci/run.sh

+8
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
5959
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-cargo-native-static"
6060
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-units-std=1"
6161

62+
# When building for mingw, limit the number of parallel linker jobs during
63+
# the LLVM build, as not to run out of memory.
64+
# This is an attempt to fix the spurious build error tracked by
65+
# https://github.com/rust-lang/rust/issues/108227.
66+
if isWindows && [[ ${CUSTOM_MINGW-0} -eq 1 ]]; then
67+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set llvm.link-jobs=1"
68+
fi
69+
6270
# Only produce xz tarballs on CI. gz tarballs will be generated by the release
6371
# process by recompressing the existing xz ones. This decreases the storage
6472
# space required for CI artifacts.

0 commit comments

Comments
 (0)