Skip to content

Commit f997188

Browse files
authored
Unrolled build for rust-lang#132494
Rollup merge of rust-lang#132494 - onur-ozkan:library-profile-default, r=jieyouxu make `download-rustc="if-unchanged"` default for library profile Since `download-rustc` is tested on CI and rust-lang#132267 makes it effective for library development, we can now make it default for the library profile. Implements the 3rd item from [this tracking issue](rust-lang#131744).
2 parents 588a420 + 329dacf commit f997188

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/bootstrap/defaults/config.library.toml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ bench-stage = 0
88
[rust]
99
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
1010
incremental = true
11+
# Download rustc from CI instead of building it from source.
12+
# For stage > 1 builds, this cuts compile times significantly when there are no changes on "compiler" tree.
13+
download-rustc = "if-unchanged"
1114
# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
1215
lto = "off"
1316

src/bootstrap/defaults/config.tools.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
55
incremental = true
66
# Download rustc from CI instead of building it from source.
7-
# This cuts compile times by almost 60x, but means you can't modify the compiler.
7+
# For stage > 1 builds, this cuts compile times significantly when there are no changes on "compiler" tree.
88
# Using these defaults will download the stage2 compiler (see `download-rustc`
99
# setting) and the stage2 toolchain should therefore be used for these defaults.
1010
download-rustc = "if-unchanged"

src/bootstrap/src/utils/change_tracker.rs

+5
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
290290
severity: ChangeSeverity::Info,
291291
summary: "New option `llvm.offload` to control whether the llvm offload runtime for GPU support is built. Implicitly enables the openmp runtime as dependency.",
292292
},
293+
ChangeInfo {
294+
change_id: 132494,
295+
severity: ChangeSeverity::Info,
296+
summary: "`download-rustc='if-unchanged'` is now a default option for library profile.",
297+
},
293298
];

0 commit comments

Comments
 (0)