Add -g -fno-omit-frame-pointer when compiling tests with sanitizers
llvm-svn: 222053
This commit is contained in:
parent
d6bd7bf6ba
commit
00616f1039
|
@ -238,6 +238,7 @@ san = lit_config.params.get('llvm_use_sanitizer', None)
|
|||
if san is None:
|
||||
san = getattr(config, 'llvm_use_sanitizer', None)
|
||||
if san:
|
||||
compile_flags += ['-g', '-fno-omit-frame-pointer']
|
||||
if sys.platform.startswith('linux'):
|
||||
link_flags += ['-ldl']
|
||||
if san == 'Address':
|
||||
|
|
Loading…
Reference in New Issue