Skip to content

Commit 7cfa94b

Browse files
committed
make x check to use stage0 by default
Signed-off-by: onur-ozkan <[email protected]>
1 parent 756348a commit 7cfa94b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,10 @@ impl Config {
25312531
|| bench_stage.is_some();
25322532
// See https://github.com/rust-lang/compiler-team/issues/326
25332533
config.stage = match config.cmd {
2534-
Subcommand::Check { .. } | Subcommand::Clippy { .. } | Subcommand::Fix => {
2534+
Subcommand::Check { .. } => {
2535+
flags.stage.or(check_stage).unwrap_or(0)
2536+
}
2537+
Subcommand::Clippy { .. } | Subcommand::Fix => {
25352538
flags.stage.or(check_stage).unwrap_or(1)
25362539
}
25372540
// `download-rustc` only has a speed-up for stage2 builds. Default to stage2 unless explicitly overridden.

0 commit comments

Comments
 (0)