[compiler-rt] r220676 - [Tsan] Enable thread sanitizer tests on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Mon Oct 27 04:28:53 PDT 2014
Author: vkutuzov
Date: Mon Oct 27 06:28:53 2014
New Revision: 220676
URL: http://llvm.org/viewvc/llvm-project?rev=220676&view=rev
Log:
[Tsan] Enable thread sanitizer tests on FreeBSD
Differential Revision: http://reviews.llvm.org/D5995
Modified:
compiler-rt/trunk/cmake/config-ix.cmake
compiler-rt/trunk/test/tsan/lit.cfg
Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=220676&r1=220675&r2=220676&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Mon Oct 27 06:28:53 2014
@@ -241,7 +241,7 @@ else()
endif()
if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH AND
- OS_NAME MATCHES "Linux")
+ OS_NAME MATCHES "Linux|FreeBSD")
set(COMPILER_RT_HAS_TSAN TRUE)
else()
set(COMPILER_RT_HAS_TSAN FALSE)
Modified: compiler-rt/trunk/test/tsan/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/lit.cfg?rev=220676&r1=220675&r2=220676&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/lit.cfg (original)
+++ compiler-rt/trunk/test/tsan/lit.cfg Mon Oct 27 06:28:53 2014
@@ -60,6 +60,6 @@ config.substitutions.append( ("%deflake
# Default test suffixes.
config.suffixes = ['.c', '.cc', '.cpp']
-# ThreadSanitizer tests are currently supported on Linux only.
-if config.host_os not in ['Linux']:
+# ThreadSanitizer tests are currently supported on FreeBSD and Linux only.
+if config.host_os not in ['FreeBSD', 'Linux']:
config.unsupported = True
More information about the llvm-commits
mailing list