From c8f3435f0ea4e8aadf575a1b313ba57390619aa8 Mon Sep 17 00:00:00 2001 From: Viktor Kutuzov Date: Mon, 27 Oct 2014 11:28:53 +0000 Subject: [PATCH] [Tsan] Enable thread sanitizer tests on FreeBSD Differential Revision: http://reviews.llvm.org/D5995 llvm-svn: 220676 --- compiler-rt/cmake/config-ix.cmake | 2 +- compiler-rt/test/tsan/lit.cfg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index 6690dd91796f..0b722c36670b 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -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) diff --git a/compiler-rt/test/tsan/lit.cfg b/compiler-rt/test/tsan/lit.cfg index d8b4fe9ff4ab..d27500f8e3ea 100644 --- a/compiler-rt/test/tsan/lit.cfg +++ b/compiler-rt/test/tsan/lit.cfg @@ -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 -- 2.34.1