mbedtls: fix x86_64-darwin build
The upgrade to 2.26.0 (https://github.com/NixOS/nixpkgs/pull/119838) required two new warning suppression flags for gcc. However these flags are not recognized by clang, and therefore the build was failing on x86_64-darwin.
This commit is contained in:
parent
8651109424
commit
fe7c1cfdcc
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
cmakeFlags = [ "-DUSE_SHARED_MBEDTLS_LIBRARY=on" ];
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
|
||||
"-Wno-error=format"
|
||||
"-Wno-error=format-truncation"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user