diff options
| author | onur-ozkan <work@onurozkan.dev> | 2025-02-24 11:00:42 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2025-02-24 11:17:19 +0300 |
| commit | 37b18f8f4746d27e7094e0ee95536b074d1cc0ad (patch) | |
| tree | 18e22174194f8b20c2725ad5102b5d9eafccdc1e | |
| parent | e0be1a02626abef2878cb7f4aaef7ae409477112 (diff) | |
| download | rust-37b18f8f4746d27e7094e0ee95536b074d1cc0ad.tar.gz rust-37b18f8f4746d27e7094e0ee95536b074d1cc0ad.zip | |
add explicit stage fields to `Config`
Signed-off-by: onur-ozkan <work@onurozkan.dev>
| -rw-r--r-- | src/bootstrap/src/core/config/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index d4b72ead045..5082678eda8 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -218,6 +218,8 @@ pub struct Config { pub stderr_is_tty: bool, pub on_fail: Option<String>, + pub explicit_stage_from_cli: bool, + pub explicit_stage_from_config: bool, pub stage: u32, pub keep_stage: Vec<u32>, pub keep_stage_std: Vec<u32>, @@ -2323,6 +2325,14 @@ impl Config { config.compiletest_diff_tool = compiletest_diff_tool; let download_rustc = config.download_rustc_commit.is_some(); + config.explicit_stage_from_cli = flags.stage.is_some(); + config.explicit_stage_from_config = test_stage.is_some() + || build_stage.is_some() + || doc_stage.is_some() + || dist_stage.is_some() + || install_stage.is_some() + || check_stage.is_some() + || bench_stage.is_some(); // See https://github.com/rust-lang/compiler-team/issues/326 config.stage = match config.cmd { Subcommand::Check { .. } => flags.stage.or(check_stage).unwrap_or(0), |
