cogl: fix build with clang 16
This commit is contained in:
parent
32da89a1a1
commit
cba493538e
1 changed files with 9 additions and 5 deletions
|
@ -85,11 +85,15 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = lib.optionals pangoSupport [ pango cairo harfbuzz ]
|
||||
++ lib.optionals stdenv.isDarwin [ OpenGL ];
|
||||
|
||||
env = {
|
||||
COGL_PANGO_DEP_CFLAGS = toString (lib.optionals (stdenv.isDarwin && pangoSupport) [
|
||||
"-I${pango.dev}/include/pango-1.0"
|
||||
"-I${cairo.dev}/include/cairo"
|
||||
"-I${harfbuzz.dev}/include/harfbuzz"
|
||||
]);
|
||||
} // lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
||||
};
|
||||
|
||||
#doCheck = true; # all tests fail (no idea why)
|
||||
|
||||
|
|
Loading…
Reference in a new issue