Skip to content

Commit 0a1fde9

Browse files
committed
Fix pre-existing bug in exe check
1 parent b31628d commit 0a1fde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ impl Build {
461461
.parent()
462462
.unwrap()
463463
.to_path_buf();
464-
if !bootstrap_out.join("rustc").exists() && !cfg!(test) {
464+
if !bootstrap_out.join(exe("rustc", config.build)).exists() && !cfg!(test) {
465465
// this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
466466
panic!("run `cargo build --bins` before `cargo run`")
467467
}

0 commit comments

Comments
 (0)