meson: set _DEBUG on all platforms for debug builds

This commit is contained in:
Myaamori 2020-11-19 18:37:41 +00:00 committed by Ryan Lucia
parent 0ea6d36fca
commit 8bb8b34fe7
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ if host_machine.system() == 'windows'
add_project_arguments('-DNOMINMAX', '-D_WIN32_WINNT=0x0602', language: 'cpp')
endif
if get_option('debug')
add_project_arguments('-D_DEBUG', language: 'cpp')
endif
conf = configuration_data()
conf.set_quoted('P_DATA', dataroot)
if get_option('credit') != ''