[PATCH] D15109: [tsan] Enable Thread Sanitizer on OS X builds by default
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 06:51:20 PST 2015
kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, samsonov, kcc, glider.
kubabrecka added subscribers: llvm-commits, zaks.anna, ismailp, jevinskie.
We finally pass all tests (both lit and unit tests) for Thread Sanitizer on OS X! Let's start building it and testing it by default.
http://reviews.llvm.org/D15109
Files:
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ cmake/config-ix.cmake
@@ -560,19 +560,12 @@
endif()
if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH AND
- OS_NAME MATCHES "Linux|FreeBSD")
+ OS_NAME MATCHES "Darwin|Linux|FreeBSD")
set(COMPILER_RT_HAS_TSAN TRUE)
else()
set(COMPILER_RT_HAS_TSAN FALSE)
endif()
-if(APPLE)
- option(COMPILER_RT_ENABLE_TSAN_OSX "Enable building TSan for OS X - Experimental" Off)
- if(COMPILER_RT_ENABLE_TSAN_OSX)
- set(COMPILER_RT_HAS_TSAN TRUE)
- endif()
-endif()
-
if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows")
set(COMPILER_RT_HAS_UBSAN TRUE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15109.41500.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151201/4485d302/attachment-0001.bin>
More information about the llvm-commits
mailing list