Skip to content

Commit

Permalink
chore: use lld instead of ld
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyscot committed Nov 2, 2024
1 parent dc9373b commit e38a096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[target.'cfg(target_os="linux")']
# using mold breaks cargo cross on musl (the image is based on focal, which does not have a mold package)
#rustflags = ["-C", "link-arg=-fuse-ld=mold"]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]

[target.'cfg(target_os="windows")']
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]

# On Windows MSVC, statically link the C runtime so that the resulting EXE does
# not depend on the vcruntime DLL.
Expand Down

0 comments on commit e38a096

Please sign in to comment.