llvm: make hardeningDisable of trivialautovarinit common across all llvms
its omission from llvm 17 was probably an oversight arising from llvm 17's release leap-frogging the trivialautovarinit PR
This commit is contained in:
@@ -102,6 +102,10 @@ stdenv.mkDerivation (rec {
|
||||
|
||||
outputs = [ "out" "lib" "dev" "python" ];
|
||||
|
||||
hardeningDisable = [
|
||||
"trivialautovarinit"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ]
|
||||
++ (lib.optional (lib.versionAtLeast release_version "15") ninja)
|
||||
++ [ python ]
|
||||
@@ -535,6 +539,4 @@ stdenv.mkDerivation (rec {
|
||||
check_version minor ${minor}
|
||||
check_version patch ${patch}
|
||||
'';
|
||||
} // lib.optionalAttrs (lib.versionOlder release_version "17" || lib.versionAtLeast release_version "18") {
|
||||
hardeningDisable = [ "trivialautovarinit" ];
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user