pkg-config: fix build with newer clang

Building pkg-config with newer versions of clang fails in the vendored
glib due to an incompatible conversion.ZZ
This commit is contained in:
Randy Eckenrode 2023-05-10 03:02:53 -04:00
parent 5611fa71ab
commit b9d1dde37b
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -35,6 +35,9 @@ stdenv.mkDerivation rec {
"ac_cv_func_posix_getgrgid_r=yes"
];
# Silence "incompatible integer to pointer conversion passing 'gsize'" when building with Clang.
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion";
enableParallelBuilding = true;
doCheck = true;