zero-to-production/.cargo/config.toml
Russell Boley ed8e931165
Update linker settings for Mac
Brew now separates the lld and llvm installs, so you need to `brew install lld` and update the directory to the lld directory from llvm.
2025-01-28 05:51:58 -08:00

14 lines
433 B
TOML

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"]
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/opt/lld/bin/ld64.lld"]