Skip to content

Commit a66376b

Browse files
authored
[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 #127123.
1 parent ab166d4 commit a66376b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
207207
COMPONENT lld-headers
208208
FILES_MATCHING
209209
PATTERN "*.h"
210+
PATTERN "*.inc"
210211
)
211212

212213
if (NOT LLVM_ENABLE_IDE)

0 commit comments

Comments
 (0)