Skip to content

Commit

Permalink
Configure cargo to use the new linker on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Jan 24, 2025
1 parent 01ef491 commit 22f5120
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/rust.task.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ local config = {
nur = "nursery",
},
build = hm.is_linux and {
rustflags = { "-C", "link-arg=-fuse-ld=lld" },
} or nil,
rustflags = { "-C", "link-arg=-fuse-ld=lld" },
}
or {
rustflags = {
"-C",
"link-arg=-fuse-ld=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld",
"-C",
"link-arg=-ld_new",
},
},
net = {
["git-fetch-with-cli"] = true,
},
Expand Down

0 comments on commit 22f5120

Please sign in to comment.