[clang] [HLSL][CMake] Add clangd and distribution settings (PR #92011)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Fri May 17 07:10:09 PDT 2024
================
@@ -8,6 +8,12 @@ set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX;SPIRV" CACHE STRING "")
# HLSL support is currently limted to clang, eventually it will expand to
# clang-tools-extra too.
-set(LLVM_ENABLE_PROJECTS "clang" CACHE STRING "")
+set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "")
set(CLANG_ENABLE_HLSL On CACHE BOOL "")
+
+if (NOT CMAKE_CONFIGURATION_TYPES)
+ set(LLVM_DISTRIBUTION_COMPONENTS
+ "clang;hlsl-resource-headers;clangd"
+ CACHE STRING "")
----------------
llvm-beanz wrote:
The clang symlinks are all part of the `clang` component, so they all get installed together. We should probably change that and have some which are part of the default target (clang, clang++), and others that aren't (like clang-dxc).
https://github.com/llvm/llvm-project/pull/92011
More information about the cfe-commits
mailing list