summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-08-01 14:22:42 -0400
committerAndrew Morrow <acm@10gen.com>2013-08-15 10:13:09 -0400
commit23b676781c096cbc3acc83cfaf188cb219d6a06d (patch)
tree84597889f1de0097bb0658d77ff6403777a7f520 /SConstruct
parentc9b019d326dca25c7f88abb5b74aef2476b69aec (diff)
downloadmongo-23b676781c096cbc3acc83cfaf188cb219d6a06d.tar.gz
Retain frame pointers when building with clang sanitizers
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct1
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d9d31c3f93b..9faeb71b7da 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1160,6 +1160,7 @@ def doConfigure(myenv):
sanitizer_option = '-fsanitize=' + GetOption('sanitize')
if AddToCCFLAGSIfSupported(myenv, sanitizer_option):
myenv.Append(LINKFLAGS=[sanitizer_option])
+ myenv.Append(CCFLAGS=['-fno-omit-frame-pointer'])
else:
print( 'Failed to enable sanitizer with flag: ' + sanitizer_option )
Exit(1)