From 60897b23271dde25d7b5268b41820111f3b7db6e Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Thu, 26 Jan 2023 21:04:04 +0100 Subject: [PATCH] meson: Set NDEBUG on release builds The old MSVC build system also set this: https://github.com/Aegisub/Aegisub/blob/6f546951b4f004da16ce19ba638bf3eedefb9f31/build/standard-settings.props#L62 --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 9029f5070..84bbe0b6f 100644 --- a/meson.build +++ b/meson.build @@ -52,6 +52,10 @@ if get_option('debug') and host_machine.system() != 'windows' add_project_arguments('-D_DEBUG', language: 'cpp') endif +if get_option('buildtype') == 'release' + add_project_arguments('-DNDEBUG', language: 'cpp') +endif + conf = configuration_data() conf.set_quoted('P_DATA', dataroot) conf.set_quoted('P_LOCALE', localedir)