Merge pull request #119923 from samuela/samuela/mbedtls

mbedtls: fix x86_64-darwin build
This commit is contained in:
Sandro 2021-04-20 18:40:06 +02:00 committed by GitHub
commit abf404caaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
];