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

Retain frame pointers when building with clang sanitizers

This commit is contained in:
Andrew Morrow 2013-08-01 14:22:42 -04:00
parent c9b019d326
commit 23b676781c

View File

@ -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)