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:
Matthias Clasen 2021-03-19 21:56:48 -04:00
parent 9640bfb3fe
commit df4b564d69

View File

@ -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')