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:
parent
c06d108c27
commit
083d0095e6
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue