cogl: fix build with gcc15 (#471076)

This commit is contained in:
Aleksana
2025-12-17 16:12:25 +00:00
committed by GitHub
+10 -3
View File
@@ -111,9 +111,16 @@ stdenv.mkDerivation rec {
"-I${harfbuzz.dev}/include/harfbuzz"
]
);
}
// lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
NIX_CFLAGS_COMPILE = toString (
[ ]
++ lib.optional stdenv.cc.isGNU [
# Fix build with gcc15
"-std=gnu17"
]
++ lib.optional stdenv.cc.isClang [
"-Wno-error=implicit-function-declaration"
]
);
};
#doCheck = true; # all tests fail (no idea why)