diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 3d03a056c15..e02031d09bc 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())