From 334887915e9ecf57ae967aed8d96cef16a589ccf Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Sun, 10 Jul 2022 10:55:00 -0400 Subject: [PATCH] meson: use NDEBUG in release like b_ndebug=if-release --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 17db11f..dba2f62 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,7 @@ if git.found() endif endif -if buildtype != 'debug' and buildtype != 'debugoptimized' +if buildtype == 'release' c_args += '-DNDEBUG' endif