From 2ef3d172c4c574bd58abca0e8bbe7548c313c60b Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sat, 24 Sep 2022 13:32:19 -0500 Subject: [PATCH] Copy `bootstrap.exe` on Windows, not `bootstrap` --- src/bootstrap/dist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 3d03a056c154..e02031d09bcc 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -2078,7 +2078,7 @@ impl Step for Bootstrap { let bootstrap_outdir = &builder.bootstrap_out; for file in &["bootstrap", "llvm-config-wrapper", "rustc", "rustdoc", "sccache-plus-cl"] { - tarball.add_file(bootstrap_outdir.join(file), "bootstrap/bin", 0o755); + tarball.add_file(bootstrap_outdir.join(exe(file, target)), "bootstrap/bin", 0o755); } Some(tarball.generate())