From a66376b0dc3b2ea8a84fda26faca287980986f78 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 21 Feb 2025 11:06:33 -0600 Subject: [PATCH] [lld,CMake] Include Version.inc when LLVM_DISTRIBUTION_COMPONENTS contains lld-headers (#127946) 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 https://github.com/llvm/llvm-project/pull/127123. --- lld/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt index 012a943d5bce..55d7599a447f 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)