diff --git a/.cargo/config.toml b/.cargo/config.toml index e989948..c7125dc 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,4 +1,3 @@ # https://github.com/rui314/mold?tab=readme-ov-file#how-to-use -[target.x86_64-unknown-linux-gnu] -linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=mold"] +[target.'cfg(target_os = "linux")'] +rustflags = [ "-C", "link-arg=-fuse-ld=mold" ]