This commit is contained in:
nora 2023-09-29 18:09:43 +02:00
parent 1db3122d1e
commit 82228e93cd
4 changed files with 9 additions and 9 deletions

View file

@ -9,8 +9,8 @@
home.file.".cargo/config.toml" = {
text = ''
[target.x86_64-unknown-linux-gnu]
linker = "${pkgs.llvmPackages_16.clang}/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=${pkgs.mold}/bin/mold", "-Ctarget-cpu=native"]
linker = "${lib.getExe pkgs.llvmPackages_16.clang}"
rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold "mold"}", "-Ctarget-cpu=native"]
'';
};