meson: Set NDEBUG on release builds

The old MSVC build system also set this:
6f546951b4/build/standard-settings.props (L62)
This commit is contained in:
arch1t3cht 2023-01-26 21:04:04 +01:00
parent 8fc301fad4
commit 60897b2327
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ if get_option('debug') and host_machine.system() != 'windows'
add_project_arguments('-D_DEBUG', language: 'cpp')
if get_option('buildtype') == 'release'
add_project_arguments('-DNDEBUG', language: 'cpp')
conf = configuration_data()
conf.set_quoted('P_DATA', dataroot)
conf.set_quoted('P_LOCALE', localedir)