[lld] [lld][build] include Version.inc (PR #127946)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 18:49:06 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Maksim Levental (makslevental)

<details>
<summary>Changes</summary>

Without this inc file `getLLDVersion` is not possible; see https://github.com/llvm/llvm-project/blob/main/lld/include/lld/Common/Version.h#L16.

---
Full diff: https://github.com/llvm/llvm-project/pull/127946.diff


1 Files Affected:

- (modified) lld/CMakeLists.txt (+1) 


``````````diff
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)

``````````

</details>


https://github.com/llvm/llvm-project/pull/127946


More information about the llvm-commits mailing list