mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
refactor: Move ld=gold rule to mesonBuildLayer
This commit is contained in:
parent
3d078cd508
commit
cab347b4eb
23 changed files with 6 additions and 82 deletions
|
@ -97,6 +97,12 @@ let
|
|||
];
|
||||
separateDebugInfo = !stdenv.hostPlatform.isStatic;
|
||||
hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
|
||||
env = prevAttrs.env or {}
|
||||
// lib.optionalAttrs
|
||||
(stdenv.isLinux
|
||||
&& !(stdenv.hostPlatform.isStatic && stdenv.system == "aarch64-linux")
|
||||
&& !(stdenv.hostPlatform.useLLVM or false))
|
||||
{ LDFLAGS = "-fuse-ld=gold"; };
|
||||
};
|
||||
|
||||
mesonLibraryLayer = finalAttrs: prevAttrs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue