[polly] r279728 - Also warn if llvm-lit is not available.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 03:35:22 PDT 2016


Author: meinersbur
Date: Thu Aug 25 05:35:22 2016
New Revision: 279728

URL: http://llvm.org/viewvc/llvm-project?rev=279728&view=rev
Log:
Also warn if llvm-lit is not available.

The program 'llvm-lit', like 'not' and 'FileCheck' are necessary for running
check-polly. Warn of any of the three is not in LLVM_INSTALL_ROOT/bin directory.

Modified:
    polly/trunk/CMakeLists.txt

Modified: polly/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/CMakeLists.txt?rev=279728&r1=279727&r2=279728&view=diff
==============================================================================
--- polly/trunk/CMakeLists.txt (original)
+++ polly/trunk/CMakeLists.txt Thu Aug 25 05:35:22 2016
@@ -9,14 +9,14 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
   if( NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm )
     message(FATAL_ERROR "LLVM_INSTALL_ROOT (${LLVM_INSTALL_ROOT}) is not a valid LLVM installation.")
   endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm)
-  #FileCheck is not install by default, warn the user to Copy FileCheck
+  # FileCheck, not and llvm-lit are not install by default, warn the user to copy them.
   if( NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck
-      OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not)
-    message(WARNING "FileCheck or not are required by running regress tests, "
-                    "but they are not installed! Please copy it to "
+      OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not
+      OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/llvm-lit )
+    message(WARNING "'FileCheck', 'not' and 'llvm-lit' are required by running regress tests, "
+                    "but they are not installed! Please copy them to "
                     "${LLVM_INSTALL_ROOT}/bin.")
-  endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck
-        OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not)
+  endif()
   # Add the llvm header path.
   include_directories(${LLVM_INSTALL_ROOT}/include/)
 




More information about the llvm-commits mailing list