File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,14 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
59
59
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-cargo-native-static"
60
60
RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.codegen-units-std=1"
61
61
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=4"
68
+ fi
69
+
62
70
# Only produce xz tarballs on CI. gz tarballs will be generated by the release
63
71
# process by recompressing the existing xz ones. This decreases the storage
64
72
# space required for CI artifacts.
You can’t perform that action at this time.
0 commit comments