From f240c01cbc88ca8c4bec4e0de64dcabdc6ef7310 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 24 Dec 2020 16:57:08 -0500 Subject: [PATCH] meson: only manually set _DEBUG on non-windows --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 0b53d1967..dd5e84877 100644 --- a/meson.build +++ b/meson.build @@ -45,7 +45,8 @@ if host_machine.system() == 'windows' add_project_arguments('-DNOMINMAX', '-D_WIN32_WINNT=0x0602', language: 'cpp') 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') endif