Copy bootstrap.exe on Windows, not bootstrap

This commit is contained in:
Joshua Nelson 2022-09-24 13:32:19 -05:00
parent 790d9d4dd0
commit 2ef3d172c4

View File

@ -2078,7 +2078,7 @@ fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
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())