summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-06-29 10:14:24 -0400
committerMartin Bligh <mbligh@mongodb.com>2015-07-06 16:27:37 -0400
commit53b6e275061c50769467924ac0737d585e667edd (patch)
treecf9d655ea71e96a43ddd87a9262439a11d3a36a7 /SConstruct
parente39c4e2b6b94783b06f1fcfcaa56246fcd2f4ad1 (diff)
downloadmongo-53b6e275061c50769467924ac0737d585e667edd.tar.gz
SERVER-10512: Add -fno-omit-frame-pointer by default
Performance overhead is so small it's not measurable, previous microbenchmarks indicate around 1% for intensive workloads. In return we get the ability to use perf profiling and much improved debugability
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index bc0904be4b1..36726978589 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1209,7 +1209,8 @@ env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
if env.TargetOSIs('posix'):
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
- env.Append( CCFLAGS=["-fPIC",
+ env.Append( CCFLAGS=["-fno-omit-frame-pointer",
+ "-fPIC",
"-fno-strict-aliasing",
"-ggdb",
"-pthread",