[PATCH] D23745: [cmake] Update lit search to match the one in LLVM
Michał Górny via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 18 10:16:41 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL284496: [cmake] Update lit search to match the one in LLVM (authored by mgorny).
Changed prior to commit:
https://reviews.llvm.org/D23745?vs=73192&id=75027#toc
Repository:
rL LLVM
https://reviews.llvm.org/D23745
Files:
cfe/trunk/CMakeLists.txt
Index: cfe/trunk/CMakeLists.txt
===================================================================
--- cfe/trunk/CMakeLists.txt
+++ cfe/trunk/CMakeLists.txt
@@ -124,6 +124,7 @@
endif()
if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
+ # Note: path not really used, except for checking if lit was found
set(LLVM_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
if(NOT LLVM_UTILS_PROVIDED)
add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/FileCheck utils/FileCheck)
@@ -140,8 +141,10 @@
endif()
else()
# Seek installed Lit.
- find_program(LLVM_LIT "lit.py" ${LLVM_MAIN_SRC_DIR}/utils/lit
- DOC "Path to lit.py")
+ find_program(LLVM_LIT
+ NAMES llvm-lit lit.py lit
+ PATHS "${LLVM_MAIN_SRC_DIR}/utils/lit"
+ DOC "Path to lit.py")
endif()
if(LLVM_LIT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23745.75027.patch
Type: text/x-patch
Size: 881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161018/72185fc3/attachment.bin>
More information about the cfe-commits
mailing list