Include ld64 nexte to ld for use with -Z gcc-ld

This commit is contained in:
Hans Kratz 2021-08-23 09:28:07 +02:00
parent 0ac601d03e
commit a519095054
2 changed files with 6 additions and 0 deletions

View File

@ -1121,6 +1121,10 @@ impl Step for Assemble {
&lld_install.join("bin").join(&src_exe),
&gcc_ld_dir.join(exe("ld", target_compiler.host)),
);
builder.copy(
&lld_install.join("bin").join(&src_exe),
&gcc_ld_dir.join(exe("ld64", target_compiler.host)),
);
}
// Similarly, copy `llvm-dwp` into libdir for Split DWARF. Only copy it when the LLVM

View File

@ -412,6 +412,8 @@ impl Step for Rustc {
let gcc_lld_dir = dst_dir.join("gcc-ld");
t!(fs::create_dir(&gcc_lld_dir));
builder.copy(&src_dir.join(&rust_lld), &gcc_lld_dir.join(exe("ld", compiler.host)));
builder
.copy(&src_dir.join(&rust_lld), &gcc_lld_dir.join(exe("ld64", compiler.host)));
}
// Copy over llvm-dwp if it's there