# Link with mold from the repo itself, so `cargo build`/`cargo run` do not # depend on a machine-local ~/.cargo/config.toml. -fuse-ld is understood by # both the clang and gcc drivers, so this works with whatever `linker` the # caller has configured (mold is in the devShell PATH; the nix build gets it # via flake.nix). [target.x86_64-unknown-linux-gnu] rustflags = ["-C", "link-arg=-fuse-ld=mold"]