-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lld,CMake] Include Version.inc when LLVM_DISTRIBUTION_COMPONENTS contains lld-headers #127946
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
[lld,CMake] Include Version.inc when LLVM_DISTRIBUTION_COMPONENTS contains lld-headers #127946
Conversation
Without this inc file `getLLDVersion` is not possible; see https://github.com/llvm/llvm-project/blob/main/lld/include/lld/Common/Version.h#L16.
@llvm/pr-subscribers-lld Author: Maksim Levental (makslevental) ChangesWithout this inc file Full diff: https://github.com/llvm/llvm-project/pull/127946.diff 1 Files Affected:
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
index 012a943d5bcec..55d7599a447fc 100644
--- a/lld/CMakeLists.txt
+++ b/lld/CMakeLists.txt
@@ -207,6 +207,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
COMPONENT lld-headers
FILES_MATCHING
PATTERN "*.h"
+ PATTERN "*.inc"
)
if (NOT LLVM_ENABLE_IDE)
|
I actually noticed that your previous lld patch did not include I'd love to see more testing in the future to minimize the need for these kinds of fixes. Please update the description to say that this fixes #127123 |
I'm all for testing and more testing but I'm not sure how this particular issue could be tested since this is a build/install system change. In MLIR we have out-of-tree examples that are actually built in CI to in order exactly to exercise such patches. But lld doesn't right? (Unless I missed it). |
@MaskRay anything else left here? |
Couldn't you run the pipeline locally and figure out the missing file issue earlier? Why do you need to trial and error for the llvm-project part? |
The build system in Triton is complex - requiring separately staged PRs to separate branches (
It isn't a need - it was a simple mistake influenced by the above circumstances. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/23536 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/2337 Here is the relevant piece of the build log for the reference
|
Without this inc file
getLLDVersion
cannot be called; see https://github.com/llvm/llvm-project/blob/main/lld/include/lld/Common/Version.h#L16.Fixes incomplete solution introduced by #127123.