Skip to content

Commit

Permalink
mbedtls: make -Wno-error conditional on gcc version (#344753)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Sep 27, 2024
2 parents 9f92114 + 045a98f commit afa5c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/mbedtls/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
"-DGEN_FILES=off"
];

env = lib.optionalAttrs stdenv.cc.isGNU {
env = lib.optionalAttrs (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) {
NIX_CFLAGS_COMPILE = "-Wno-error=calloc-transposed-args";
};

Expand Down

0 comments on commit afa5c5e

Please sign in to comment.