mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
wrap mold
This commit is contained in:
parent
6238aa9a57
commit
74d876a070
1 changed files with 2 additions and 1 deletions
|
|
@ -8,11 +8,12 @@ in
|
||||||
{
|
{
|
||||||
programs.neovim.enable = true;
|
programs.neovim.enable = true;
|
||||||
|
|
||||||
|
# mold-wrapped has the cursed nix linker shenanigans that make it produce properly rpathed binaries.
|
||||||
home.file.".cargo/config.toml" = {
|
home.file.".cargo/config.toml" = {
|
||||||
text = ''
|
text = ''
|
||||||
[target.x86_64-unknown-linux-gnu]
|
[target.x86_64-unknown-linux-gnu]
|
||||||
linker = "${lib.getExe pkgs.llvmPackages_16.clang}"
|
linker = "${lib.getExe pkgs.llvmPackages_16.clang}"
|
||||||
rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold "mold"}", "-Ctarget-cpu=native"]
|
rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold-wrapped "mold"}", "-Ctarget-cpu=native"]
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue