Add -DNDEBUG flag for release build
This commit is contained in:
parent
46a6a391b6
commit
93dd2d92fd
|
@ -4,6 +4,10 @@ cc = meson.get_compiler('c')
|
||||||
|
|
||||||
add_global_arguments('-std=c11', language: 'c')
|
add_global_arguments('-std=c11', language: 'c')
|
||||||
|
|
||||||
|
if get_option('buildtype') == 'release'
|
||||||
|
add_global_arguments('-DNDEBUG', language: 'c')
|
||||||
|
endif
|
||||||
|
|
||||||
if get_option('sanitize')
|
if get_option('sanitize')
|
||||||
sanitizers = ['address', 'undefined']
|
sanitizers = ['address', 'undefined']
|
||||||
if cc.has_argument('-fsanitize=integer')
|
if cc.has_argument('-fsanitize=integer')
|
||||||
|
|
Loading…
Reference in New Issue