Skip to content

Commit 941a692

Browse files
committed
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. llvm-svn: 279728
1 parent 6181da4 commit 941a692

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

polly/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
99
if( NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm )
1010
message(FATAL_ERROR "LLVM_INSTALL_ROOT (${LLVM_INSTALL_ROOT}) is not a valid LLVM installation.")
1111
endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm)
12-
#FileCheck is not install by default, warn the user to Copy FileCheck
12+
# FileCheck, not and llvm-lit are not install by default, warn the user to copy them.
1313
if( NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck
14-
OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not)
15-
message(WARNING "FileCheck or not are required by running regress tests, "
16-
"but they are not installed! Please copy it to "
14+
OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not
15+
OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/llvm-lit )
16+
message(WARNING "'FileCheck', 'not' and 'llvm-lit' are required by running regress tests, "
17+
"but they are not installed! Please copy them to "
1718
"${LLVM_INSTALL_ROOT}/bin.")
18-
endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/FileCheck
19-
OR NOT EXISTS ${LLVM_INSTALL_ROOT}/bin/not)
19+
endif()
2020
# Add the llvm header path.
2121
include_directories(${LLVM_INSTALL_ROOT}/include/)
2222

0 commit comments

Comments
 (0)