Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2044e0d

Browse files
committed
update stage defaults
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent eeb14e8 commit 2044e0d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/bootstrap/defaults/bootstrap.library.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These defaults are meant for contributors to the standard library and documentation.
22
[build]
33
# When building the standard library, you almost never want to build the compiler itself.
4-
build-stage = 0
5-
test-stage = 0
6-
bench-stage = 0
4+
build-stage = 1
5+
test-stage = 1
6+
bench-stage = 1
77

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.

src/bootstrap/src/core/config/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,10 +2427,12 @@ impl Config {
24272427
|| bench_stage.is_some();
24282428
// See https://github.com/rust-lang/compiler-team/issues/326
24292429
config.stage = match config.cmd {
2430-
Subcommand::Check { .. } => flags.stage.or(check_stage).unwrap_or(0),
2430+
Subcommand::Check { .. } | Subcommand::Clippy { .. } | Subcommand::Fix => {
2431+
flags.stage.or(check_stage).unwrap_or(1)
2432+
}
24312433
// `download-rustc` only has a speed-up for stage2 builds. Default to stage2 unless explicitly overridden.
24322434
Subcommand::Doc { .. } => {
2433-
flags.stage.or(doc_stage).unwrap_or(if download_rustc { 2 } else { 0 })
2435+
flags.stage.or(doc_stage).unwrap_or(if download_rustc { 2 } else { 1 })
24342436
}
24352437
Subcommand::Build => {
24362438
flags.stage.or(build_stage).unwrap_or(if download_rustc { 2 } else { 1 })
@@ -2445,8 +2447,6 @@ impl Config {
24452447
// These are all bootstrap tools, which don't depend on the compiler.
24462448
// The stage we pass shouldn't matter, but use 0 just in case.
24472449
Subcommand::Clean { .. }
2448-
| Subcommand::Clippy { .. }
2449-
| Subcommand::Fix
24502450
| Subcommand::Run { .. }
24512451
| Subcommand::Setup { .. }
24522452
| Subcommand::Format { .. }

0 commit comments

Comments
 (0)