[Tsan] Enable thread sanitizer tests on FreeBSD
authorViktor Kutuzov <vkutuzov@accesssoftek.com>
Mon, 27 Oct 2014 11:28:53 +0000 (11:28 +0000)
committerViktor Kutuzov <vkutuzov@accesssoftek.com>
Mon, 27 Oct 2014 11:28:53 +0000 (11:28 +0000)
Differential Revision: http://reviews.llvm.org/D5995

llvm-svn: 220676

compiler-rt/cmake/config-ix.cmake
compiler-rt/test/tsan/lit.cfg

index 6690dd91796f980c0bc6f0a68d9e125683adf1a6..0b722c36670b27e2f2257b1bb99d9e4fff557ace 100644 (file)
@@ -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)
index d8b4fe9ff4ab3efffd3664d7693e7bc75db5a88d..d27500f8e3ea6c03f3ec168c06a0e8a790f0fe46 100644 (file)
@@ -60,6 +60,6 @@ config.substitutions.append( ("%deflake ", os.path.join(os.path.dirname(__file__
 # 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