summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-09-28 13:22:41 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-09-28 15:23:31 -0400
commit36d240b6c0ec3a84266084fe161aeca86e659563 (patch)
treea45a5762516e73094708e69f7f6271bc3b65c9ac /SConstruct
parent2d5555b6a942aeb7de0370c67c974cdbb5f40ab5 (diff)
downloadmongo-36d240b6c0ec3a84266084fe161aeca86e659563.tar.gz
SERVER-17790 Define NDEBUG on non-debug builds
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 36bcd4d3da3..8a30e2ae763 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1193,6 +1193,8 @@ elif env.TargetOSIs('solaris'):
# ---- other build setup -----
if debugBuild:
env.SetConfigHeaderDefine("MONGO_CONFIG_DEBUG_BUILD")
+else:
+ env.AppendUnique( CPPDEFINES=[ 'NDEBUG' ] )
if env.TargetOSIs('linux'):
env.Append( LIBS=['m'] )