flake: Use mold for linking in devShell

Our `lld` was a bit out of date. Mold seems to be slightly faster
anyways and seems to work well on both Linux & macOS.
This commit is contained in:
Michael Davis 2025-03-07 09:39:13 -05:00
parent b6e58c0fa4
commit fab08c0981
No known key found for this signature in database

View file

@ -57,7 +57,7 @@
# Devshell behavior is preserved.
devShells.default = let
commonRustFlagsEnv = "-C link-arg=-fuse-ld=lld -C target-cpu=native --cfg tokio_unstable";
commonRustFlagsEnv = "-C link-arg=-fuse-ld=mold -C target-cpu=native --cfg tokio_unstable";
platformRustFlagsEnv = pkgs.lib.optionalString pkgs.stdenv.isLinux "-Clink-arg=-Wl,--no-rosegment";
in
pkgs.mkShell
@ -65,7 +65,7 @@
inputsFrom = [self.checks.${system}.helix];
nativeBuildInputs = with pkgs;
[
lld_13
mold
cargo-flamegraph
rust-bin.nightly.latest.rust-analyzer
]