makeBinaryWrapper: fix compiling with clang

This commit is contained in:
Tristan Ross
2025-01-16 20:29:09 -08:00
parent fa4acf2cd5
commit 3aadd30566
@@ -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"
}";
};