Skip to content

Commit 57a38b0

Browse files
committed
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
1 parent a62cf2f commit 57a38b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkgs/development/compilers/llvm/common/llvm/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ stdenv.mkDerivation (rec {
102102

103103
outputs = [ "out" "lib" "dev" "python" ];
104104

105+
hardeningDisable = [
106+
"trivialautovarinit"
107+
];
108+
105109
nativeBuildInputs = [ cmake ]
106110
++ (lib.optional (lib.versionAtLeast release_version "15") ninja)
107111
++ [ python ]
@@ -535,6 +539,4 @@ stdenv.mkDerivation (rec {
535539
check_version minor ${minor}
536540
check_version patch ${patch}
537541
'';
538-
} // lib.optionalAttrs (lib.versionOlder release_version "17" || lib.versionAtLeast release_version "18") {
539-
hardeningDisable = [ "trivialautovarinit" ];
540542
})

0 commit comments

Comments
 (0)