mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue