Skip to content

Commit

Permalink
fix(macos): use rust-lld for *all* macOS targets
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda committed Nov 8, 2024
1 parent a7d37ca commit 800f7e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ linker = "rust-lld"
# NOTE: `rustdoc` doesn't currently respect the `linker` setting — keep an eye
# on this issue: https://github.com/rust-lang/rust/issues/125657
rustdocflags = ["-Clink-arg=-fuse-ld=lld"]

# NOTE: Also annoyingly, `target.<cfg>` doesn't let you set `rustdocflags`, so
# something like `[target.'cfg(target_os = "macos")']` doesn't work here and
# this repetition is needed...
[target.x86_64-apple-darwin]
linker = "rust-lld"
rustdocflags = ["-Clink-arg=-fuse-ld=lld"]

0 comments on commit 800f7e1

Please sign in to comment.