Skip to content

Commit

Permalink
Auto merge of #126692 - DianQK:nixos-patchelf, r=Nilstrieb
Browse files Browse the repository at this point in the history
patch `rust-lld` and `ld.lld` on NixOS

When `rustc` uses its self-contained lld, we also need to patch `rust-lld` and `ld.lld`.
The `rpath` for `rust-lld` is `$ORIGIN/../../../:$ORIGIN/../lib`, so I use `--add-rpath` instead of `--set-rpath`, which should be easier to maintain.

I also changed `src/bootstrap/src/core/download.rs`, even this doesn't fix any known issues.

For the `lld-wrapper.sh` of lld, refer to: rust-lang/rustc-dev-guide#1999.
  • Loading branch information
bors committed Jun 27, 2024
2 parents 402efe7 + ec55015 commit cccb943
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit cccb943

Please sign in to comment.