-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[LLD][CMake] fix testing standalone build without installed llvm-lit. #138575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This block was copied from clang/CMakeLists.txt.
@llvm/pr-subscribers-lld Author: None (jeremyd2019) ChangesThis block was copied from clang/CMakeLists.txt. Full diff: https://github.com/llvm/llvm-project/pull/138575.diff 1 Files Affected:
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)
|
requesting review from @petrhosek or @mstorsjo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/8833 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/2870 Here is the relevant piece of the build log for the reference
|
I've been seeing some noise from buildbot (emails and also these comments) but I don't see how they have anything to do with anything. Please let me know if there's some real indication that something's wrong that needs fixing. |
Those do indeed seem entirely unrelated, so there's nothing expected from you at this point. |
This block was copied from clang/CMakeLists.txt.