X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fcompile.rs;h=0d89e0a4f25c9036df7f3ed44eb30b8deb1118fe;hb=6b68921ca0d25690e9d7d3b5d6f442fb1bda1fcc;hp=dd2b9d59366eab0b5bfc38dfe20a116a8381afca;hpb=87dd56f3d6546aba58c231d59cfc7c196e25b224;p=rust.git diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index dd2b9d59366..0d89e0a4f25 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -1276,7 +1276,9 @@ fn run(self, builder: &Builder<'_>) -> Compiler { compiler: build_compiler, target: target_compiler.host, }); - builder.copy(&lld_wrapper_exe, &gcc_ld_dir.join(exe("ld", target_compiler.host))); + for name in crate::LLD_FILE_NAMES { + builder.copy(&lld_wrapper_exe, &gcc_ld_dir.join(exe(name, target_compiler.host))); + } } if builder.config.rust_codegen_backends.contains(&INTERNER.intern_str("llvm")) {