summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Keller <skeller@gnome.org>2023-03-21 00:52:39 +0100
committerMarge Bot <marge-bot@gnome.org>2023-03-24 12:51:49 +0000
commit679d2fb4e069ac7fbb021dda24f97fdc875274fb (patch)
treed781f7f6d5cb6e56e2a5f2ffd7843525db6d6880
parentd6af73ba68bb6d51cf3e6712a3d43ff0c79a377c (diff)
downloadmutter-679d2fb4e069ac7fbb021dda24f97fdc875274fb.tar.gz
build: Don't disable checks in release builds
Both Clutter and Cogl use g_return(_val)_if_fail() to safeguard introspected API. Release builds were dropping these checks, which could result in a much more crashy experience, especially when considering extensions, but also due to bugs in the shell code itself. This won't affect any major distro, because they all use "plain" builds. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2930>
-rw-r--r--clutter/meson.build1
-rw-r--r--cogl/meson.build1
2 files changed, 0 insertions, 2 deletions
diff --git a/clutter/meson.build b/clutter/meson.build
index 918153ee4..07256486b 100644
--- a/clutter/meson.build
+++ b/clutter/meson.build
@@ -21,7 +21,6 @@ if get_option('debug')
elif buildtype != 'plain'
clutter_debug_c_args += [
'-DG_DISABLE_ASSERT',
- '-DG_DISABLE_CHECKS',
'-DG_DISABLE_CAST_CHECKS',
]
endif
diff --git a/cogl/meson.build b/cogl/meson.build
index e73f1a8f9..277dfaba1 100644
--- a/cogl/meson.build
+++ b/cogl/meson.build
@@ -106,7 +106,6 @@ if get_option('debug')
]
elif buildtype != 'plain'
cogl_debug_c_args += [
- '-DG_DISABLE_CHECKS',
'-DG_DISABLE_CAST_CHECKS'
]
endif