mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Disable cast checks in plain builds
This commit is contained in:
parent
4f4ac4ac1a
commit
631e99667e
@ -298,11 +298,11 @@ endif
|
|||||||
# optimization is 0 or g; otherwise, we have a production build.
|
# optimization is 0 or g; otherwise, we have a production build.
|
||||||
glib_debug_cflags = []
|
glib_debug_cflags = []
|
||||||
glib_debug = get_option('glib_debug')
|
glib_debug = get_option('glib_debug')
|
||||||
optimized_build = get_option('optimization') not in [ '0', 'g' ]
|
if (glib_debug.enabled() or (
|
||||||
if glib_debug.enabled() or (glib_debug.auto() and get_option('debug') and not optimized_build)
|
glib_debug.auto() and get_option('debug') and get_option('optimization') in [ '0', 'g' ]))
|
||||||
glib_debug_cflags += ['-DG_ENABLE_DEBUG']
|
glib_debug_cflags += ['-DG_ENABLE_DEBUG']
|
||||||
message('Enabling various debug infrastructure')
|
message('Enabling various debug infrastructure')
|
||||||
elif optimized_build
|
else
|
||||||
glib_debug_cflags += ['-DG_DISABLE_CAST_CHECKS']
|
glib_debug_cflags += ['-DG_DISABLE_CAST_CHECKS']
|
||||||
message('Disabling cast checks')
|
message('Disabling cast checks')
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user