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:
parent
8fc301fad4
commit
60897b2327
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ if get_option('debug') and host_machine.system() != 'windows'
|
||||||
add_project_arguments('-D_DEBUG', language: 'cpp')
|
add_project_arguments('-D_DEBUG', language: 'cpp')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('buildtype') == 'release'
|
||||||
|
add_project_arguments('-DNDEBUG', language: 'cpp')
|
||||||
|
endif
|
||||||
|
|
||||||
conf = configuration_data()
|
conf = configuration_data()
|
||||||
conf.set_quoted('P_DATA', dataroot)
|
conf.set_quoted('P_DATA', dataroot)
|
||||||
conf.set_quoted('P_LOCALE', localedir)
|
conf.set_quoted('P_LOCALE', localedir)
|
||||||
|
|
Loading…
Reference in a new issue