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:
1 file changed
+3
-2
+3
-2
@@ -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"]
|
||||||
Reference in new issue
Block a user