Skip to content

Commit 16107c8

Browse files
authored
[LLD][CMake] fix testing standalone build without installed llvm-lit. (#138575)
This block was copied from clang/CMakeLists.txt.
1 parent 93aba1e commit 16107c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ if(LLD_BUILT_STANDALONE)
6363
if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
6464
# Note: path not really used, except for checking if lit was found
6565
set(LLVM_EXTERNAL_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
66+
if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/llvm-lit)
67+
add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/llvm-lit utils/llvm-lit)
68+
endif()
6669
if(NOT LLVM_UTILS_PROVIDED)
6770
add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/FileCheck utils/FileCheck)
6871
add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/not utils/not)

0 commit comments

Comments
 (0)