[polly] r247675 - Fix after renamed CMake cache entry

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 03:51:15 PDT 2015


Author: meinersbur
Date: Tue Sep 15 05:51:15 2015
New Revision: 247675

URL: http://llvm.org/viewvc/llvm-project?rev=247675&view=rev
Log:
Fix after renamed CMake cache entry

LLVM_EXTERNAL_CLANG_BUILD was changed to LLVM_TOOL_CLANG_BUILD in
r242059.


Modified:
    polly/trunk/test/CMakeLists.txt

Modified: polly/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CMakeLists.txt?rev=247675&r1=247674&r2=247675&view=diff
==============================================================================
--- polly/trunk/test/CMakeLists.txt (original)
+++ polly/trunk/test/CMakeLists.txt Tue Sep 15 05:51:15 2015
@@ -81,8 +81,11 @@ else (NOT DEFINED LLVM_MAIN_SRC_DIR)
   # Run polly-check-format as part of polly-check only if we are compiling with
   # clang, so clang-format is availbale.
   # if (TARGET clang-format) would be preferable, but this target is only added
-  # after Polly, i.e. there is no such target yet at this point.
-  if (LLVM_EXTERNAL_CLANG_BUILD)
+  # after Polly, i.e. there is no such target yet at this point. The CMake cache
+  # entry LLVM_TOOL_CLANG_BUILD will only be defined after clang has been
+  # configured at least once, i.e. format will be checked only after a rerun of
+  # CMake's configure.
+  if (LLVM_TOOL_CLANG_BUILD)
     add_dependencies(check-polly polly-check-format)
   endif ()
 




More information about the llvm-commits mailing list