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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user