make x check to use stage0 by default
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
99426c570e
commit
4e71f24a6b
1 changed files with 4 additions and 1 deletions
|
|
@ -2531,7 +2531,10 @@ impl Config {
|
|||
|| bench_stage.is_some();
|
||||
// See https://github.com/rust-lang/compiler-team/issues/326
|
||||
config.stage = match config.cmd {
|
||||
Subcommand::Check { .. } | Subcommand::Clippy { .. } | Subcommand::Fix => {
|
||||
Subcommand::Check { .. } => {
|
||||
flags.stage.or(check_stage).unwrap_or(0)
|
||||
}
|
||||
Subcommand::Clippy { .. } | Subcommand::Fix => {
|
||||
flags.stage.or(check_stage).unwrap_or(1)
|
||||
}
|
||||
// `download-rustc` only has a speed-up for stage2 builds. Default to stage2 unless explicitly overridden.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue