Skip to content

Commit f8b67ff

Browse files
committed
Try building rustc with codegen-units=5
1 parent 26e5bcd commit f8b67ff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bootstrap/builder.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,10 @@ impl<'a> Builder<'a> {
14441444
}
14451445

14461446
match (mode, self.config.rust_codegen_units_std, self.config.rust_codegen_units) {
1447-
(Mode::Std, Some(n), _) | (_, _, Some(n)) => {
1447+
(Mode::Rustc, _, Some(n)) => {
1448+
cargo.env(profile_var("CODEGEN_UNITS"), n.to_string());
1449+
}
1450+
(Mode::Std, Some(n), _) => {
14481451
cargo.env(profile_var("CODEGEN_UNITS"), n.to_string());
14491452
}
14501453
_ => {

src/ci/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-manage-submodules"
5252
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
5353
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-cargo-native-static"
5454
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-units-std=1"
55+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-units=5"
5556

5657
# Only produce xz tarballs on CI. gz tarballs will be generated by the release
5758
# process by recompressing the existing xz ones. This decreases the storage

0 commit comments

Comments
 (0)