summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-06-29 10:14:24 -0400
committerRamon Fernandez <ramon.fernandez@mongodb.com>2015-10-29 15:00:31 -0400
commit90d0da843c44962fb1a21e368cd95fe24b25c711 (patch)
treed6c2986301d4b32828c6f5058042e5fdcaf14a19
parent3f62deef2f4cccc007387b2fb061c0814ecec7c8 (diff)
downloadmongo-90d0da843c44962fb1a21e368cd95fe24b25c711.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 (cherry picked from commit 53b6e275061c50769467924ac0737d585e667edd)
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f48e870d724..069f0f1cc64 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1074,7 +1074,8 @@ if nix:
env["CXX"] = "distcc " + env["CXX"]
# -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",