Skip to content

Commit 3e6050c

Browse files
committed
use exe to resolve gcc-ld path
Signed-off-by: onur-ozkan <[email protected]>
1 parent b6fdb74 commit 3e6050c

File tree

1 file changed

+5
-2
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-2
lines changed

src/bootstrap/src/core/build_steps/dist.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,11 @@ impl Step for Rustc {
462462
let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin");
463463
let rust_lld = exe("rust-lld", compiler.host);
464464
builder.copy_link(&src_dir.join(&rust_lld), &dst_dir.join(&rust_lld));
465-
let self_contained_lld_src_dir = src_dir.join("gcc-ld");
466-
let self_contained_lld_dst_dir = dst_dir.join("gcc-ld");
465+
466+
let gcc_ld = exe("gcc-ld", compiler.host);
467+
let self_contained_lld_src_dir = src_dir.join(&gcc_ld);
468+
let self_contained_lld_dst_dir = dst_dir.join(gcc_ld);
469+
467470
t!(fs::create_dir(&self_contained_lld_dst_dir));
468471
for name in crate::LLD_FILE_NAMES {
469472
let exe_name = exe(name, compiler.host);

0 commit comments

Comments
 (0)