Don't set G_ENABLE_CONSISTENCY_CHECKS on all debug builds.

This commit is contained in:
John Ralls 2019-07-26 15:25:13 -07:00
parent a12931b9f8
commit d34d99a917

View File

@ -60,9 +60,9 @@ gtk_debug_cflags = []
buildtype = get_option('buildtype')
if buildtype.startswith('debug')
gtk_debug_cflags += '-DG_ENABLE_DEBUG'
if buildtype == 'debug'
gtk_debug_cflags += '-DG_ENABLE_CONSISTENCY_CHECKS'
endif
# if buildtype == 'debug'
# gtk_debug_cflags += '-DG_ENABLE_CONSISTENCY_CHECKS'
# endif
elif buildtype == 'release'
gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS'
endif