summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-09-19 14:15:30 +0000
committerAlexey Samsonov <samsonov@google.com>2012-09-19 14:15:30 +0000
commitbc0b3f43d10411208c02dd5ecf1b4f56ab17b171 (patch)
treea1de7c9a667cea2f29d9821a898e02ce30759bc3
parent51f3c4eadc1787553364fb557733c62b8080bb7b (diff)
downloadbcm5719-llvm-bc0b3f43d10411208c02dd5ecf1b4f56ab17b171.tar.gz
bcm5719-llvm-bc0b3f43d10411208c02dd5ecf1b4f56ab17b171.zip
[ASan] Include ASan into CMake build only on Linux, Mac and Windows
llvm-svn: 164224
-rw-r--r--compiler-rt/lib/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/compiler-rt/lib/CMakeLists.txt b/compiler-rt/lib/CMakeLists.txt
index 0b5685b97cd..cb72594e699 100644
--- a/compiler-rt/lib/CMakeLists.txt
+++ b/compiler-rt/lib/CMakeLists.txt
@@ -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)
OpenPOWER on IntegriCloud