chore: Configures mold linker for Linux

Configures the mold linker for Linux targets, excluding MIPS architectures due to incompatibility. This improves linking speed.
This commit is contained in:
Nils Andreas Svee committed 2026-02-21 13:30:05 +07:00
1 parent 684d137235
commit 9d863b470f
1 file changed
+3 -2
+3 -2
View File
@@ -1,3 +1,4 @@
[target.'cfg(target_os = "linux")'] # Apply mold to all Linux targets EXCEPT MIPS
linker = "clang" # MIPS is excluded because mold does not support it.
[target.'cfg(all(target_os = "linux", not(any(target_arch = "mips", target_arch = "mips64"))))']
rustflags = ["-C", "link-arg=-fuse-ld=mold"] rustflags = ["-C", "link-arg=-fuse-ld=mold"]