[llvm-commits] [compiler-rt] r164224 - /compiler-rt/trunk/lib/CMakeLists.txt
Alexey Samsonov
samsonov at google.com
Wed Sep 19 07:15:30 PDT 2012
Author: samsonov
Date: Wed Sep 19 09:15:30 2012
New Revision: 164224
URL: http://llvm.org/viewvc/llvm-project?rev=164224&view=rev
Log:
[ASan] Include ASan into CMake build only on Linux, Mac and Windows
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=164224&r1=164223&r2=164224&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Wed Sep 19 09:15:30 2012
@@ -1,8 +1,12 @@
# First, add the subdirectories which contain feature-based runtime libraries
# and several convenience helper libraries.
-add_subdirectory(asan)
-add_subdirectory(interception)
-add_subdirectory(sanitizer_common)
+if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|Windows")
+ # AddressSanitizer is supported on Linux and Mac OS X.
+ # Windows support is work in progress.
+ add_subdirectory(asan)
+ add_subdirectory(interception)
+ add_subdirectory(sanitizer_common)
+endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
# ThreadSanitizer is supported on Linux only.
add_subdirectory(tsan)
More information about the llvm-commits
mailing list