diff options
author | Martin Bligh <mbligh@mongodb.com> | 2015-06-29 10:14:24 -0400 |
---|---|---|
committer | Martin Bligh <mbligh@mongodb.com> | 2015-07-06 16:27:37 -0400 |
commit | 53b6e275061c50769467924ac0737d585e667edd (patch) | |
tree | cf9d655ea71e96a43ddd87a9262439a11d3a36a7 /SConstruct | |
parent | e39c4e2b6b94783b06f1fcfcaa56246fcd2f4ad1 (diff) | |
download | mongo-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-- | SConstruct | 3 |
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", |