Index: cmake/config-ix.cmake =================================================================== --- cmake/config-ix.cmake +++ cmake/config-ix.cmake @@ -194,7 +194,7 @@ 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: test/tsan/lit.cfg =================================================================== --- test/tsan/lit.cfg +++ test/tsan/lit.cfg @@ -62,6 +62,6 @@ # 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