Skip to content

Commit 8c5e487

Browse files
authored
[HLSL][CMake] Add clangd and distribution settings (llvm#92011)
This just adds some simple distribution settings and includes clangd in the build for distribution.
1 parent c4017cd commit 8c5e487

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clang/cmake/caches/HLSL.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX;SPIRV" CACHE STRING "")
88

99
# HLSL support is currently limted to clang, eventually it will expand to
1010
# clang-tools-extra too.
11-
set(LLVM_ENABLE_PROJECTS "clang" CACHE STRING "")
11+
set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "")
1212

1313
set(CLANG_ENABLE_HLSL On CACHE BOOL "")
14+
15+
if (NOT CMAKE_CONFIGURATION_TYPES)
16+
set(LLVM_DISTRIBUTION_COMPONENTS
17+
"clang;hlsl-resource-headers;clangd"
18+
CACHE STRING "")
19+
endif()

0 commit comments

Comments
 (0)