Merge pull request #273444 from wegank/uri-clang

uri: fix build on darwin
This commit is contained in:
Weijia Wang 2023-12-11 18:53:12 +01:00 committed by GitHub
commit a8dac2fa64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -11,12 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd";
};
env.NIX_CFLAGS_COMPILE = toString [
env.NIX_CFLAGS_COMPILE = toString ([
"-Wno-error=parentheses"
# Needed with GCC 12
"-Wno-error=deprecated-declarations"
"-Wno-error=nonnull"
];
] ++ lib.optionals stdenv.cc.isClang [
# Needed with Clang 16
"-Wno-error=deprecated-builtins"
]);
nativeBuildInputs = [ cmake doxygen ];

View file

@ -20958,7 +20958,7 @@ with pkgs;
ustream-ssl-mbedtls = callPackage ../development/libraries/ustream-ssl { ssl_implementation = mbedtls_2; };
uri = callPackage ../development/libraries/uri { stdenv = gcc10StdenvCompat; };
uri = callPackage ../development/libraries/uri { };
cppcms = callPackage ../development/libraries/cppcms { };