Skip to content

Commit 3c1c2c0

Browse files
committed
skip rustc version check in dry_run
1 parent 69c7d82 commit 3c1c2c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,10 @@ impl Config {
16841684
}
16851685

16861686
fn check_build_rustc_version(&self) {
1687+
if self.dry_run() {
1688+
return;
1689+
}
1690+
16871691
// check rustc version is same or lower with 1 apart from the building one
16881692
let mut cmd = Command::new(&self.initial_rustc);
16891693
cmd.arg("--version");

0 commit comments

Comments
 (0)