Merge pull request #65850 from worldofpeace/bye-g-disable-checks

glib,gtk: correct CLAGS for plain buildtype
This commit is contained in:
worldofpeace 2019-08-05 11:33:07 -04:00 committed by GitHub
commit a2253f442d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 2 deletions

View File

@ -95,6 +95,12 @@ stdenv.mkDerivation rec {
"-Dudev_dir=${placeholder "out"}/lib/udev" "-Dudev_dir=${placeholder "out"}/lib/udev"
]; ];
NIX_CFLAGS_COMPILE = [
# Default for release buildtype but passed manually because
# we're using plain
"-DG_DISABLE_CAST_CHECKS"
];
# So the polkit policy can reference /run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper # So the polkit policy can reference /run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper
postFixup = '' postFixup = ''
mkdir -p $out/bin/gnome-settings-daemon mkdir -p $out/bin/gnome-settings-daemon

View File

@ -150,6 +150,12 @@ stdenv.mkDerivation rec {
"-Dudev_dir=${placeholder "out"}/lib/udev" "-Dudev_dir=${placeholder "out"}/lib/udev"
]; ];
NIX_CFLAGS_COMPILE = [
# Default for release buildtype but passed manually because
# we're using plain
"-DG_DISABLE_CAST_CHECKS"
];
passthru = { passthru = {
updateScript = gnome3.updateScript { updateScript = gnome3.updateScript {
packageName = projectName; packageName = projectName;

View File

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

View File

@ -77,6 +77,13 @@ stdenv.mkDerivation rec {
"-Dtests=false" "-Dtests=false"
]; ];
# These are the defines that'd you'd get with --enable-debug=minimum (default).
# See: https://developer.gnome.org/gtk3/stable/gtk-building.html#extra-configuration-options
NIX_CFLAGS_COMPILE = [
"-DG_ENABLE_DEBUG"
"-DG_DISABLE_CAST_CHECKS"
];
postPatch = '' postPatch = ''
files=( files=(
build-aux/meson/post-install.py build-aux/meson/post-install.py