[TSan][libdispatch] Configure libdispatch lit tests

llvm-svn: 356311
This commit is contained in:
Julian Lettner 2019-03-16 02:07:50 +00:00
parent 632c217921
commit 769b73738d
1 changed files with 6 additions and 1 deletions

View File

@ -8,4 +8,9 @@ root = getRoot(config)
if 'libdispatch' not in root.available_features:
config.unsupported = True
config.target_cflags += ' -fblocks'
# libdispatch is not yet compiled with TSan
config.environment['TSAN_OPTIONS'] += ':ignore_noninstrumented_modules=1'
for index, (template, replacement) in enumerate(config.substitutions):
if template in ['%clang_tsan ', '%clangxx_tsan ']:
config.substitutions[index] = (template, replacement + ' -fblocks ')