File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ pub struct Config {
218
218
pub stderr_is_tty : bool ,
219
219
220
220
pub on_fail : Option < String > ,
221
+ pub explicit_stage_from_cli : bool ,
222
+ pub explicit_stage_from_config : bool ,
221
223
pub stage : u32 ,
222
224
pub keep_stage : Vec < u32 > ,
223
225
pub keep_stage_std : Vec < u32 > ,
@@ -2323,6 +2325,14 @@ impl Config {
2323
2325
config. compiletest_diff_tool = compiletest_diff_tool;
2324
2326
2325
2327
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 ( ) ;
2326
2336
// See https://github.com/rust-lang/compiler-team/issues/326
2327
2337
config. stage = match config. cmd {
2328
2338
Subcommand :: Check { .. } => flags. stage . or ( check_stage) . unwrap_or ( 0 ) ,
You can’t perform that action at this time.
0 commit comments