From 223d9f7e007a81e4533910c8d00aa33d7240f638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 18 Jan 2017 09:46:51 -0800 Subject: [PATCH] Added _DEBUG, NDEBUG defines for release/debug builds. --- scripts/toolchain.lua | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 5d8573a..6a01c92 100644 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -532,21 +532,27 @@ function toolchain(_buildDir, _libDir) "__STDC_CONSTANT_MACROS", } - configuration { "qbs" } - flags { - "ExtraWarnings", - } - configuration { "Debug" } targetsuffix "Debug" + defines { + "_DEBUG", + } configuration { "Release" } flags { "NoBufferSecurityCheck", "OptimizeSpeed", } + defines { + "NDEBUG", + } targetsuffix "Release" + configuration { "qbs" } + flags { + "ExtraWarnings", + } + configuration { "vs*", "x32" } flags { "EnableSSE2",