diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-03-14 11:19:20 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-03-20 10:51:04 +0100 |
| commit | 40fc42371f04316e882cdfe8bf39b9dd194343ac (patch) | |
| tree | 105b87ee70768da523778accf2e3d9040def5eba | |
| parent | d610b0c514b9ccb0dad5d0b77ce4c518f71b92c8 (diff) | |
| download | rust-40fc42371f04316e882cdfe8bf39b9dd194343ac.tar.gz rust-40fc42371f04316e882cdfe8bf39b9dd194343ac.zip | |
Limited the number of parallel link jobs during LLVM build for mingw.
This is an attempt to fix the spurious build error tracked by https://github.com/rust-lang/rust/issues/108227.
| -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..f5df5f7f6ec 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=4" +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. |
