makeBinaryWrapper: fix compiling with clang (#374243)

This commit is contained in:
Arne Keller
2025-01-30 23:34:44 +01:00
committed by GitHub
@@ -16,6 +16,9 @@ makeSetupHook {
substitutions = {
cc = "${cc}/bin/${cc.targetPrefix}cc ${
lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)
+ lib.optionalString (
cc.isClang && !cc.stdenv.hostPlatform.isDarwin
) "--ld-path=${cc.targetPrefix}ld"
}";
};