[compiler-rt] r356311 - [TSan][libdispatch] Configure libdispatch lit tests
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 19:07:50 PDT 2019
Author: yln
Date: Fri Mar 15 19:07:50 2019
New Revision: 356311
URL: http://llvm.org/viewvc/llvm-project?rev=356311&view=rev
Log:
[TSan][libdispatch] Configure libdispatch lit tests
Modified:
compiler-rt/trunk/test/tsan/libdispatch/lit.local.cfg
Modified: compiler-rt/trunk/test/tsan/libdispatch/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/libdispatch/lit.local.cfg?rev=356311&r1=356310&r2=356311&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/libdispatch/lit.local.cfg (original)
+++ compiler-rt/trunk/test/tsan/libdispatch/lit.local.cfg Fri Mar 15 19:07:50 2019
@@ -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 ')
More information about the llvm-commits
mailing list