From 97899ed045c9eed69eeaf83333c74872146f473a Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 12 Apr 2020 14:25:49 +0000 Subject: [PATCH] meson: Set -DNDEBUG for all other build types than debug or debugoptimized --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a3618e8..f5b2354 100644 --- a/meson.build +++ b/meson.build @@ -16,7 +16,7 @@ c_args = [ '-fvisibility=hidden', ] -if buildtype == 'release' or buildtype == 'plain' +if buildtype != 'debug' and buildtype != 'debugoptimized' c_args += '-DNDEBUG' endif