Merge pull request #267791 from reckenrode/groonga-fix

groonga: fix build with clang 16
This commit is contained in:
Mario Rodas 2023-11-16 04:52:49 -05:00 committed by GitHub
commit 24b8833b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,11 @@ stdenv.mkDerivation rec {
optional zlibSupport "--with-zlib"
++ optional lz4Support "--with-lz4";
env = lib.optionalAttrs stdenv.cc.isClang {
# Prevent warning about using a GNU extension from being promoted to an error.
NIX_CFLAGS_COMPILE = "-Wno-error=gnu-folding-constant";
};
doInstallCheck = true;
installCheckPhase = "$out/bin/groonga --version";