about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-09-14 18:01:18 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-09-14 18:27:04 -0500
commit0a1fde953319bee0060268aec946afd64d7845da (patch)
tree2f0c3bfdd57b019a749b2f58b889a2bc80c317dd
parentb31628ddacda76253b707e230293f13d95b88369 (diff)
downloadrust-0a1fde953319bee0060268aec946afd64d7845da.tar.gz
rust-0a1fde953319bee0060268aec946afd64d7845da.zip
Fix pre-existing bug in exe check
-rw-r--r--src/bootstrap/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 2f2b3aed98e..4795ae2f956 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -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`")
         }