From 53b6e275061c50769467924ac0737d585e667edd Mon Sep 17 00:00:00 2001 From: Martin Bligh Date: Mon, 29 Jun 2015 10:14:24 -0400 Subject: 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 --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SConstruct') 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", -- cgit v1.2.1