yep, more dotfiles

fix: rust builds by default with lld

wiro.world c4d13a2f b45f287c

verified
Changed files
+2 -3
home-manager
fragments
+2 -3
home-manager/fragments/rust.nix
···
let
clang = lib.getExe pkgs.llvmPackages.clang;
mold = lib.getExe pkgs.mold;
-
lld = lib.getExe' pkgs.llvmPackages.lld "lld";
get-crates-io-token = pkgs.writeShellScript "get-crates-io-token" "cat ${config.age.secrets.api-crates-io.path}";
in
···
linker = clang;
rustflags = [ "-Clink-arg=--ld-path=${mold}" "-Ctarget-cpu=native" ];
};
-
x86_64-apple-darwin.rustflags = [ "-Clink-arg=-fuse-ld=${lld}" "-Ctarget-cpu=native" ];
-
aarch64-apple-darwin.rustflags = [ "-Clink-arg=-fuse-ld=${lld}" "-Ctarget-cpu=native" ];
+
x86_64-apple-darwin.rustflags = [ "-Ctarget-cpu=native" ];
+
aarch64-apple-darwin.rustflags = [ "-Ctarget-cpu=native" ];
};
unstable.gc = true;