diff --git a/.cargo/config.toml b/.cargo/config.toml index 1ef493c..73f33e3 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,4 @@ -[target.'cfg(target_os = "linux")'] -linker = "clang" +# Apply mold to all Linux targets EXCEPT MIPS +# 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"] \ No newline at end of file