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

via cfe-commits cfe-commits at lists.llvm.org
Mon May 13 11:58:27 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Chris B (llvm-beanz)

<details>
<summary>Changes</summary>

This just adds some simple distribution settings and includes clangd in the build for distribution.

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


1 Files Affected:

- (modified) clang/cmake/caches/HLSL.cmake (+5-1) 


``````````diff
diff --git a/clang/cmake/caches/HLSL.cmake b/clang/cmake/caches/HLSL.cmake
index 84850c86f12cd..9aa28625ab81e 100644
--- a/clang/cmake/caches/HLSL.cmake
+++ b/clang/cmake/caches/HLSL.cmake
@@ -8,6 +8,10 @@ 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 "")
+
+set(LLVM_DISTRIBUTION_COMPONENTS
+    "clang;hlsl-resource-headers;clangd"
+    CACHE STRING "")

``````````

</details>


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


More information about the cfe-commits mailing list