Skip to content

Commit

Permalink
use exe to resolve gcc-ld path
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Sep 7, 2024
1 parent b6fdb74 commit 3e6050c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,11 @@ impl Step for Rustc {
let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin");
let rust_lld = exe("rust-lld", compiler.host);
builder.copy_link(&src_dir.join(&rust_lld), &dst_dir.join(&rust_lld));
let self_contained_lld_src_dir = src_dir.join("gcc-ld");
let self_contained_lld_dst_dir = dst_dir.join("gcc-ld");

let gcc_ld = exe("gcc-ld", compiler.host);
let self_contained_lld_src_dir = src_dir.join(&gcc_ld);
let self_contained_lld_dst_dir = dst_dir.join(gcc_ld);

t!(fs::create_dir(&self_contained_lld_dst_dir));
for name in crate::LLD_FILE_NAMES {
let exe_name = exe(name, compiler.host);
Expand Down

0 comments on commit 3e6050c

Please sign in to comment.