Skip to content

Commit 53989e4

Browse files
jyn514Mark-Simulacrum
authored andcommitted
Allow configuring the default stage for x.py check
1 parent c17ed34 commit 53989e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ struct Build {
377377
configure_args: Option<Vec<String>>,
378378
local_rebuild: Option<bool>,
379379
print_step_timings: Option<bool>,
380+
check_stage: Option<u32>,
380381
doc_stage: Option<u32>,
381382
build_stage: Option<u32>,
382383
test_stage: Option<u32>,
@@ -676,6 +677,7 @@ impl Config {
676677

677678
// See https://github.com/rust-lang/compiler-team/issues/326
678679
config.stage = match config.cmd {
680+
Subcommand::Check { .. } => flags.stage.or(build.check_stage).unwrap_or(0),
679681
Subcommand::Doc { .. } => flags.stage.or(build.doc_stage).unwrap_or(0),
680682
Subcommand::Build { .. } => flags.stage.or(build.build_stage).unwrap_or(1),
681683
Subcommand::Test { .. } => flags.stage.or(build.test_stage).unwrap_or(1),
@@ -685,7 +687,6 @@ impl Config {
685687
// These are all bootstrap tools, which don't depend on the compiler.
686688
// The stage we pass shouldn't matter, but use 0 just in case.
687689
Subcommand::Clean { .. }
688-
| Subcommand::Check { .. }
689690
| Subcommand::Clippy { .. }
690691
| Subcommand::Fix { .. }
691692
| Subcommand::Run { .. }

0 commit comments

Comments
 (0)