[clang] [HLSL][CMake] Add clangd and distribution settings (PR #92011)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 10:31:00 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 "")
----------------
bogner wrote:

If we're going to define a distribution components we might want `clang-dxc` in there as well

https://github.com/llvm/llvm-project/pull/92011


More information about the cfe-commits mailing list