0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

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
This commit is contained in:
Martin Bligh 2015-06-29 10:14:24 -04:00
parent e39c4e2b6b
commit 53b6e27506

View File

@ -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",