[lld] 16107c8 - [LLD][CMake] fix testing standalone build without installed llvm-lit. (#138575)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 12:28:14 PDT 2025
Author: jeremyd2019
Date: 2025-05-07T22:28:11+03:00
New Revision: 16107c88fb6cc474e1e5691025eb295df094a6c2
URL: https://github.com/llvm/llvm-project/commit/16107c88fb6cc474e1e5691025eb295df094a6c2
DIFF: https://github.com/llvm/llvm-project/commit/16107c88fb6cc474e1e5691025eb295df094a6c2.diff
LOG: [LLD][CMake] fix testing standalone build without installed llvm-lit. (#138575)
This block was copied from clang/CMakeLists.txt.
Added:
Modified:
lld/CMakeLists.txt
Removed:
################################################################################
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
index 55d7599a447fc..9b202cc5d4899 100644
--- a/lld/CMakeLists.txt
+++ b/lld/CMakeLists.txt
@@ -63,6 +63,9 @@ if(LLD_BUILT_STANDALONE)
if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
# Note: path not really used, except for checking if lit was found
set(LLVM_EXTERNAL_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
+ if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/llvm-lit)
+ add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/llvm-lit utils/llvm-lit)
+ endif()
if(NOT LLVM_UTILS_PROVIDED)
add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/FileCheck utils/FileCheck)
add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/not utils/not)
More information about the llvm-commits
mailing list