Fix pre-existing bug in exe check

This commit is contained in:
Joshua Nelson 2022-09-14 18:01:18 -05:00
parent b31628ddac
commit 0a1fde9533

View file

@ -461,7 +461,7 @@ impl Build {
.parent()
.unwrap()
.to_path_buf();
if !bootstrap_out.join("rustc").exists() && !cfg!(test) {
if !bootstrap_out.join(exe("rustc", config.build)).exists() && !cfg!(test) {
// this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
panic!("run `cargo build --bins` before `cargo run`")
}