Skip to content

Commit 7fd3ce4

Browse files
committed
make download-rustc="if-unchanged" default for library profile
Signed-off-by: onur-ozkan <[email protected]>
1 parent 298c746 commit 7fd3ce4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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"

0 commit comments

Comments
 (0)