[gtk/matthiasc/for-master: 11/14] build: Disable g_assert in release builds
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 11/14] build: Disable g_assert in release builds
- Date: Sun, 21 Mar 2021 20:05:35 +0000 (UTC)
commit df4b564d69cc7d2e751537eff61259b36f37e9e5
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 19 21:56:48 2021 -0400
build: Disable g_assert in release builds
The ngl renderer is heavily using g_assert, and it
is written with the assumption that these assertions
will be compiled out in release builds.
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 5e505a9b94..fd2cea9a13 100644
--- a/meson.build
+++ b/meson.build
@@ -66,7 +66,7 @@ if debug
gtk_debug_cflags += '-DG_ENABLE_CONSISTENCY_CHECKS'
endif
elif optimization in ['2', '3', 's']
- gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS'
+ gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT'
endif
add_project_arguments(gtk_debug_cflags, language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]