Skip to content

Commit 74775eb

Browse files
committedDec 3, 2015
[tsan] Enable ThreadSanitizer on OS X builds by default, take 2
Second attempt to enable building ThreadSanitizer (and running tests) on OS X by default. Differential Revision: http://reviews.llvm.org/D15109 llvm-svn: 254603
1 parent f9a52f0 commit 74775eb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed
 

Diff for: ‎compiler-rt/cmake/config-ix.cmake

+1-8
Original file line numberDiff line numberDiff line change
@@ -560,19 +560,12 @@ else()
560560
endif()
561561

562562
if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH AND
563-
OS_NAME MATCHES "Linux|FreeBSD")
563+
OS_NAME MATCHES "Darwin|Linux|FreeBSD")
564564
set(COMPILER_RT_HAS_TSAN TRUE)
565565
else()
566566
set(COMPILER_RT_HAS_TSAN FALSE)
567567
endif()
568568

569-
if(APPLE)
570-
option(COMPILER_RT_ENABLE_TSAN_OSX "Enable building TSan for OS X - Experimental" Off)
571-
if(COMPILER_RT_ENABLE_TSAN_OSX)
572-
set(COMPILER_RT_HAS_TSAN TRUE)
573-
endif()
574-
endif()
575-
576569
if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
577570
OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows")
578571
set(COMPILER_RT_HAS_UBSAN TRUE)

0 commit comments

Comments
 (0)
Please sign in to comment.