Author: Chris B
Date: 2024-05-20T13:53:24-05:00
New Revision: 6430939baaa6222518d58d9192160312fca09327

URL: 
https://github.com/llvm/llvm-project/commit/6430939baaa6222518d58d9192160312fca09327
DIFF: 
https://github.com/llvm/llvm-project/commit/6430939baaa6222518d58d9192160312fca09327.diff

LOG: [HLSL][CMake] Cache files don't have generator vars (#92793)

Doh! CMake cache scripts don't have generator variables set yet, so the
script can't depend on the generator variables. Instead I've added a
variable that a user can specify to enable the distribution settings.

Added: 
    

Modified: 
    clang/cmake/caches/HLSL.cmake

Removed: 
    


################################################################################
diff  --git a/clang/cmake/caches/HLSL.cmake b/clang/cmake/caches/HLSL.cmake
index 27f848fdccf0c..ed813f60c9c69 100644
--- a/clang/cmake/caches/HLSL.cmake
+++ b/clang/cmake/caches/HLSL.cmake
@@ -12,7 +12,7 @@ set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE 
STRING "")
 
 set(CLANG_ENABLE_HLSL On CACHE BOOL "")
 
-if (NOT CMAKE_CONFIGURATION_TYPES)
+if (HLSL_ENABLE_DISTRIBUTION)
   set(LLVM_DISTRIBUTION_COMPONENTS
       "clang;hlsl-resource-headers;clangd"
       CACHE STRING "")


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to