[compiler-rt] r222588 - Don't make check-sanitizer depend on profile on Windows

Reid Kleckner reid at kleckner.net
Fri Nov 21 15:09:51 PST 2014


Author: rnk
Date: Fri Nov 21 17:09:51 2014
New Revision: 222588

URL: http://llvm.org/viewvc/llvm-project?rev=222588&view=rev
Log:
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.

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

Modified: compiler-rt/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/CMakeLists.txt?rev=222588&r1=222587&r2=222588&view=diff
==============================================================================
--- compiler-rt/trunk/test/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/CMakeLists.txt Fri Nov 21 17:09:51 2014
@@ -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)





More information about the llvm-commits mailing list