From 9b9ddb46697b56213cb1e968ac0c8ddefc5ee79e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 27 Aug 2014 14:48:35 +0600 Subject: Make SCons's DEBUG/_DEBUG consistent with CMake Also move this to a generic place in SConstruct instead of having this defines in 6 different configurations. Should not be functional changes, but please verify all the platforms. --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 7263a5ddfa1..0c398f87256 100644 --- a/SConstruct +++ b/SConstruct @@ -210,6 +210,11 @@ if sys.platform=='win32': if B.bitness==64: env.Append(CPPFLAGS=['-DWIN64']) # -DWIN32 needed too, as it's used all over to target Windows generally +if env['BF_DEBUG']: + env.Append(CPPDEFINES=['_DEBUG', 'DEBUG']) +else: + env.Append(CPPDEFINES=['NDEBUG']) + if not env['BF_FANCY']: B.bc.disable() -- cgit v1.2.3