meson: Set -DNDEBUG if not building debug rather than when building release or plain

pull/40/head
Andri Yngvason 2020-05-05 19:55:03 +00:00
parent 4f5933c07f
commit aaa782c551
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ c_args = [
'-D_GNU_SOURCE', '-D_GNU_SOURCE',
] ]
if buildtype == 'release' or buildtype == 'plain' if buildtype != 'debug' and buildtype != 'debugoptimized'
c_args += '-DNDEBUG' c_args += '-DNDEBUG'
endif endif