ccache.links: pass through hardening-related flags

Previously, wrapping a compiler that set hardeningUnsupportedFlags{,ByTargetPlatform} would swallow these flags, causing some builds to break.
This commit is contained in:
kilyanni
2026-03-24 20:59:16 +01:00
parent 3ce49beafe
commit fe7e29cd0a
+5 -1
View File
@@ -121,7 +121,11 @@ stdenv.mkDerivation (finalAttrs: {
isClang = unwrappedCC.isClang or false;
isGNU = unwrappedCC.isGNU or false;
isCcache = true;
};
}
// builtins.intersectAttrs {
hardeningUnsupportedFlagsByTargetPlatform = null;
hardeningUnsupportedFlags = null;
} unwrappedCC;
lib = lib.getLib unwrappedCC;
nativeBuildInputs = [ makeWrapper ];
# Unwrapped clang does not have a targetPrefix because it is multi-target