Commit eb5d1a7c authored by Sam Thursfield's avatar Sam Thursfield
Browse files

Merge branch 'sam/meson-debug-flags' into 'master'

build: Use specific Meson options to enable debug flags

See merge request !269
parents 58c11611 ceae7339
Pipeline #215736 failed with stages
in 3 minutes and 8 seconds
......@@ -121,13 +121,14 @@ add_project_arguments('-DG_LOG_DOMAIN="Tracker"', language: 'c')
add_project_arguments('-DG_LOG_STRUCTURED=1', language: 'c')
debug_cflags = []
buildtype = get_option('buildtype')
if buildtype.startswith('debug')
debug = get_option('debug')
optimization = get_option('optimization')
if debug
debug_cflags += '-DG_ENABLE_DEBUG'
if buildtype == 'debug'
if optimization in ['0', 'g']
elif buildtype == 'release'
elif optimization in ['2', '3', 's']
debug_cflags += '-DG_DISABLE_CAST_CHECKS'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment