Unverified Commit 31b0ba68 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

groonga: fix build with clang 16

Prevent a warning about using a GNU extension from being treated as an
error by clang.
parent 1181aa74
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";