From aaa782c551aa04781579234d95a59108aabb869a Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 5 May 2020 19:55:03 +0000 Subject: [PATCH] meson: Set -DNDEBUG if not building debug rather than when building release or plain --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3e9da90..20bf0f7 100644 --- a/meson.build +++ b/meson.build @@ -16,7 +16,7 @@ c_args = [ '-D_GNU_SOURCE', ] -if buildtype == 'release' or buildtype == 'plain' +if buildtype != 'debug' and buildtype != 'debugoptimized' c_args += '-DNDEBUG' endif