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

Maksim Levental via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 18:48:29 PST 2025


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

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

>From 5590d523cfaa5a913fd39325179fd15d4c6f8b5e Mon Sep 17 00:00:00 2001
From: Maksim Levental <maksim.levental at gmail.com>
Date: Wed, 19 Feb 2025 20:48:06 -0600
Subject: [PATCH] [lld][build] include Version.inc

Without this inc file `getLLDVersion` is not possible; see https://github.com/llvm/llvm-project/blob/main/lld/include/lld/Common/Version.h#L16.
---
 lld/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

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)



More information about the llvm-commits mailing list