Add support for LLVM_USE_SANITIZER=Thread to test suite

llvm-svn: 222260
This commit is contained in:
Eric Fiselier 2014-11-18 21:28:49 +00:00
parent 9b681f61b6
commit ef2ad33e8a
1 changed files with 3 additions and 0 deletions

View File

@ -254,6 +254,9 @@ if san:
'-fno-sanitize=vptr,function',
'-fno-sanitize-recover']
config.available_features.add('ubsan')
elif san == 'Thread':
compile_flags += ['-fsanitize=thread']
config.available_features.add('tsan')
else:
lit_config.fatal('unsupported value for '
'llvm_use_sanitizer: {0}'.format(san))