Don't make check-sanitizer depend on profile on Windows
authorReid Kleckner <reid@kleckner.net>
Fri, 21 Nov 2014 23:09:51 +0000 (23:09 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 21 Nov 2014 23:09:51 +0000 (23:09 +0000)
We don't build the profiling library on Windows, so CMake warns that the
target doesn't exist.

llvm-svn: 222588

compiler-rt/test/CMakeLists.txt

index 007ac3f..2ceb864 100644 (file)
@@ -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)