[libcxxabi] r222260 - Add support for LLVM_USE_SANITIZER=Thread to test suite

Eric Fiselier eric at efcs.ca
Tue Nov 18 13:28:49 PST 2014


Author: ericwf
Date: Tue Nov 18 15:28:49 2014
New Revision: 222260

URL: http://llvm.org/viewvc/llvm-project?rev=222260&view=rev
Log:
Add support for LLVM_USE_SANITIZER=Thread to test suite

Modified:
    libcxxabi/trunk/test/lit.cfg

Modified: libcxxabi/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/lit.cfg?rev=222260&r1=222259&r2=222260&view=diff
==============================================================================
--- libcxxabi/trunk/test/lit.cfg (original)
+++ libcxxabi/trunk/test/lit.cfg Tue Nov 18 15:28:49 2014
@@ -254,6 +254,9 @@ if san:
                           '-fno-sanitize=vptr,function',
                           '-fno-sanitize-recover']
         config.available_features.add('ubsan')
+    elif san == 'Thread':
+        compile_flags += ['-fsanitize=thread']
+        config.available_features.add('tsan')
     else:
         lit_config.fatal('unsupported value for '
                          'llvm_use_sanitizer: {0}'.format(san))





More information about the cfe-commits mailing list