summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-11-21 23:09:51 +0000
committerReid Kleckner <reid@kleckner.net>2014-11-21 23:09:51 +0000
commit04748b98a621cc88bc294918ed325b832a7eb9d1 (patch)
tree77d73b09c56aa3613d7fa20e700b9ab000ea2ec5
parent02b13a8d9bce0cb5c666c6ddf6637767055701d5 (diff)
downloadbcm5719-llvm-04748b98a621cc88bc294918ed325b832a7eb9d1.tar.gz
bcm5719-llvm-04748b98a621cc88bc294918ed325b832a7eb9d1.zip
Don't make check-sanitizer depend on profile on Windows
We don't build the profiling library on Windows, so CMake warns that the target doesn't exist. llvm-svn: 222588
-rw-r--r--compiler-rt/test/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt
index 007ac3ff3ad..2ceb86463ae 100644
--- a/compiler-rt/test/CMakeLists.txt
+++ b/compiler-rt/test/CMakeLists.txt
@@ -14,7 +14,10 @@ if(NOT ANDROID)
# Use LLVM utils and Clang from the same build tree.
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS
clang clang-headers FileCheck count not llvm-nm llvm-symbolizer
- compiler-rt-headers profile)
+ compiler-rt-headers)
+ if (COMPILER_RT_HAS_PROFILE)
+ list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS profile)
+ endif()
endif()
if(UNIX)
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS SanitizerLintCheck)
OpenPOWER on IntegriCloud