[Tsan] Enable thread sanitizer tests on FreeBSD

Differential Revision: http://reviews.llvm.org/D5995

llvm-svn: 220676
This commit is contained in:
Viktor Kutuzov 2014-10-27 11:28:53 +00:00
parent bff42de11c
commit c8f3435f0e
2 changed files with 3 additions and 3 deletions

View 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)

View 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