Add -g -fno-omit-frame-pointer when compiling tests with sanitizers

llvm-svn: 222053
This commit is contained in:
Eric Fiselier 2014-11-14 22:27:43 +00:00
parent d6bd7bf6ba
commit 00616f1039
1 changed files with 1 additions and 0 deletions

View File

@ -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':