summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-03-26 10:13:36 -0400
committerAndrew Morrow <acm@mongodb.com>2015-03-27 11:37:29 -0400
commit67cf6c0d51bf59a1933325c793b02c220283f331 (patch)
tree5ff86583c096e26b702c6754c4e41330061cc139 /SConstruct
parent1fc9d37170bcf29068f02cc2898436281fe16d6a (diff)
downloadmongo-67cf6c0d51bf59a1933325c793b02c220283f331.tar.gz
SERVER-11020 Don't overload the meaning of _DEBUG, use our own debug macro
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index a6e06bd5f2c..f05ce32f9d1 100644
--- a/SConstruct
+++ b/SConstruct
@@ -844,6 +844,9 @@ isBuildingLatest = False
def filterExists(paths):
return filter(os.path.exists, paths)
+if debugBuild:
+ env.SetConfigHeaderDefine("MONGO_CONFIG_DEBUG_BUILD")
+
if darwin:
pass
elif linux:
@@ -1061,7 +1064,6 @@ if nix:
env.Append( LINKFLAGS=["-fstack-protector"] )
env.Append( SHLINKFLAGS=["-fstack-protector"] )
env['ENV']['GLIBCXX_FORCE_NEW'] = 1; # play nice with valgrind
- env.Append( CPPDEFINES=["_DEBUG"] );
if has_option( "ssl" ):
env.SetConfigHeaderDefine("MONGO_CONFIG_SSL")