groonga: fix build with clang 16
Prevent a warning about using a GNU extension from being treated as an error by clang.
This commit is contained in:
parent
1181aa74bc
commit
31b0ba6846
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue