forked from OSchip/llvm-project
Add support for LLVM_USE_SANITIZER=Thread to test suite
llvm-svn: 222260
This commit is contained in:
parent
9b681f61b6
commit
ef2ad33e8a
|
@ -254,6 +254,9 @@ if san:
|
||||||
'-fno-sanitize=vptr,function',
|
'-fno-sanitize=vptr,function',
|
||||||
'-fno-sanitize-recover']
|
'-fno-sanitize-recover']
|
||||||
config.available_features.add('ubsan')
|
config.available_features.add('ubsan')
|
||||||
|
elif san == 'Thread':
|
||||||
|
compile_flags += ['-fsanitize=thread']
|
||||||
|
config.available_features.add('tsan')
|
||||||
else:
|
else:
|
||||||
lit_config.fatal('unsupported value for '
|
lit_config.fatal('unsupported value for '
|
||||||
'llvm_use_sanitizer: {0}'.format(san))
|
'llvm_use_sanitizer: {0}'.format(san))
|
||||||
|
|
Loading…
Reference in New Issue