mirror of https://github.com/odrling/Aegisub
meson: only manually set _DEBUG on non-windows
This commit is contained in:
parent
56581fbce3
commit
f240c01cbc
|
@ -45,7 +45,8 @@ if host_machine.system() == 'windows'
|
||||||
add_project_arguments('-DNOMINMAX', '-D_WIN32_WINNT=0x0602', language: 'cpp')
|
add_project_arguments('-DNOMINMAX', '-D_WIN32_WINNT=0x0602', language: 'cpp')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('debug')
|
# MSVC sets this automatically with -MDd, but it has a different meaning on other platforms
|
||||||
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue