glib: add cflag G_DISABLE_CAST_CHECKS

This is what would have been passed before with the release
buildtype.

See: https://gitlab.gnome.org/GNOME/glib/blob/2.60.4/meson.build#L208
This commit is contained in:
worldofpeace 2019-08-03 11:10:41 -04:00
parent 27a71a19ed
commit 60266eb504

View File

@ -98,8 +98,12 @@ stdenv.mkDerivation rec {
LC_ALL = "en_US.UTF-8";
NIX_CFLAGS_COMPILE = (optional stdenv.isSunOS "-DBSD_COMP")
++ [ "-Wno-error=nonnull" ];
NIX_CFLAGS_COMPILE = [
"-Wno-error=nonnull"
# Default for release buildtype but passed manually because
# we're using plain
"-DG_DISABLE_CAST_CHECKS"
] ++ optional stdenv.isSunOS "-DBSD_COMP";
postPatch = ''
# substitute fix-gio-launch-desktop-path.patch