Skip to content

Commit 37b18f8

Browse files
committed
add explicit stage fields to Config
Signed-off-by: onur-ozkan <[email protected]>
1 parent e0be1a0 commit 37b18f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ pub struct Config {
218218
pub stderr_is_tty: bool,
219219

220220
pub on_fail: Option<String>,
221+
pub explicit_stage_from_cli: bool,
222+
pub explicit_stage_from_config: bool,
221223
pub stage: u32,
222224
pub keep_stage: Vec<u32>,
223225
pub keep_stage_std: Vec<u32>,
@@ -2323,6 +2325,14 @@ impl Config {
23232325
config.compiletest_diff_tool = compiletest_diff_tool;
23242326

23252327
let download_rustc = config.download_rustc_commit.is_some();
2328+
config.explicit_stage_from_cli = flags.stage.is_some();
2329+
config.explicit_stage_from_config = test_stage.is_some()
2330+
|| build_stage.is_some()
2331+
|| doc_stage.is_some()
2332+
|| dist_stage.is_some()
2333+
|| install_stage.is_some()
2334+
|| check_stage.is_some()
2335+
|| bench_stage.is_some();
23262336
// See https://github.com/rust-lang/compiler-team/issues/326
23272337
config.stage = match config.cmd {
23282338
Subcommand::Check { .. } => flags.stage.or(check_stage).unwrap_or(0),

0 commit comments

Comments
 (0)