mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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.
This commit is contained in:
parent
9640bfb3fe
commit
df4b564d69
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user