[llvm-commits] [compiler-rt] r164217 - /compiler-rt/trunk/lib/CMakeLists.txt

Alexey Samsonov samsonov at google.com
Wed Sep 19 06:11:14 PDT 2012


Author: samsonov
Date: Wed Sep 19 08:11:13 2012
New Revision: 164217

URL: http://llvm.org/viewvc/llvm-project?rev=164217&view=rev
Log:
[TSan] Add tsan to cmake build of compiler-rt only on Linux

Modified:
    compiler-rt/trunk/lib/CMakeLists.txt

Modified: compiler-rt/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/CMakeLists.txt?rev=164217&r1=164216&r2=164217&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Wed Sep 19 08:11:13 2012
@@ -3,7 +3,10 @@
 add_subdirectory(asan)
 add_subdirectory(interception)
 add_subdirectory(sanitizer_common)
-add_subdirectory(tsan)
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
+  # ThreadSanitizer is supported on Linux only.
+  add_subdirectory(tsan)
+endif()
 
 # FIXME: Add support for the profile library.
 





More information about the llvm-commits mailing list