libglvnd: fix build with newer clang

This commit is contained in:
Randy Eckenrode 2023-05-20 12:07:53 -04:00
parent 255911fcb9
commit b1e1957934
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -33,7 +33,10 @@ stdenv.mkDerivation rec {
"-DDEFAULT_EGL_VENDOR_CONFIG_DIRS=\"${addOpenGLRunpath.driverLink}/share/glvnd/egl_vendor.d:/etc/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d\""
"-Wno-error=array-bounds"
] ++ lib.optional stdenv.cc.isClang "-Wno-error");
] ++ lib.optionals stdenv.cc.isClang [
"-Wno-error"
"-Wno-int-conversion"
]);
configureFlags = []
# Indirectly: https://bugs.freedesktop.org/show_bug.cgi?id=35268