diff options
| author | Julian Lettner <jlettner@apple.com> | 2019-03-16 02:07:50 +0000 |
|---|---|---|
| committer | Julian Lettner <jlettner@apple.com> | 2019-03-16 02:07:50 +0000 |
| commit | 769b73738d7e9882dbb2318350374e2aef30de74 (patch) | |
| tree | c657137abcfc744a7a5d1022f994043f71e9db7d | |
| parent | 632c217921c094b983bc54b5b18e3cd9b9a7fb1a (diff) | |
| download | bcm5719-llvm-769b73738d7e9882dbb2318350374e2aef30de74.tar.gz bcm5719-llvm-769b73738d7e9882dbb2318350374e2aef30de74.zip | |
[TSan][libdispatch] Configure libdispatch lit tests
llvm-svn: 356311
| -rw-r--r-- | compiler-rt/test/tsan/libdispatch/lit.local.cfg | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/libdispatch/lit.local.cfg b/compiler-rt/test/tsan/libdispatch/lit.local.cfg index b312a3a1f21..4e0266979ae 100644 --- a/compiler-rt/test/tsan/libdispatch/lit.local.cfg +++ b/compiler-rt/test/tsan/libdispatch/lit.local.cfg @@ -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 ') |

