diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2023-03-26 23:52:59 +0200 |
---|---|---|
committer | Pietro Albini <pietro@pietroalbini.org> | 2023-04-16 16:26:20 +0200 |
commit | b524c6277fd8f6826a97e5b83d397e03ae9c949f (patch) | |
tree | 9e21349f89a5957ec58f14371ceffec2965316ef | |
parent | f18236dcd3d8191c91aca0c4ef43e1e27b6bc0dc (diff) | |
download | rust-b524c6277fd8f6826a97e5b83d397e03ae9c949f.tar.gz |
Limit to one job on mingw builders
This is another attempt to work around
https://github.com/rust-lang/rust/issues/108227.
By limiting to one link job, we should be able to avoid file name
clashes in mkstemp().
-rwxr-xr-x | src/ci/run.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh index 93dccb54c4e..efeb850cd8b 100755 --- a/src/ci/run.sh +++ b/src/ci/run.sh @@ -59,6 +59,14 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps" RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-cargo-native-static" RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-units-std=1" +# When building for mingw, limit the number of parallel linker jobs during +# the LLVM build, as not to run out of memory. +# This is an attempt to fix the spurious build error tracked by +# https://github.com/rust-lang/rust/issues/108227. +if isWindows && [[ ${CUSTOM_MINGW-0} -eq 1 ]]; then + RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set llvm.link-jobs=1" +fi + # Only produce xz tarballs on CI. gz tarballs will be generated by the release # process by recompressing the existing xz ones. This decreases the storage # space required for CI artifacts. |