forked from OSchip/llvm-project
[TSan][libdispatch] Configure libdispatch lit tests
llvm-svn: 356311
This commit is contained in:
parent
632c217921
commit
769b73738d
|
@ -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 ')
|
||||
|
|
Loading…
Reference in New Issue