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:
parent
c9b019d326
commit
23b676781c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user