Skip to content

Commit

Permalink
Merge pull request NixOS#327093 from risicle/ris-llvm-trivialautovari…
Browse files Browse the repository at this point in the history
…nit-disable-tidy

llvm: make `hardeningDisable` of `trivialautovarinit` common across all llvms
  • Loading branch information
risicle authored Jul 14, 2024
2 parents 3181754 + 57a38b0 commit 8cc8565
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/compilers/llvm/common/llvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down Expand Up @@ -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" ];
})

0 comments on commit 8cc8565

Please sign in to comment.