[gtk/matthiasc/for-master: 5/7] build: Disable g_assert in release builds




commit 6743a1e01aacd2ce0c7f279496686b4a965579f7
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]