1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-18 10:03:03 +00:00

SDL_gpu: Fix build on clang 16

This commit is contained in:
Zhong Jianxin 2024-11-04 20:01:29 +08:00
parent c06d108c27
commit 083d0095e6

View file

@ -30,6 +30,11 @@ stdenv.mkDerivation (finalAttrs: {
libGLU
];
# error: incompatible function pointer types assigning to 'GPU_Image *(*)(GPU_Renderer *, SDL_Surface *, GPU_Rect *)'...
env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16"
) "-Wno-error=incompatible-function-pointer-types";
cmakeFlags = [
(lib.cmakeBool "SDL_gpu_BUILD_DEMOS" false)
(lib.cmakeBool "SDL_gpu_BUILD_TOOLS" false)