Skip to content

Commit

Permalink
[HLSL][CMake] Cache files don't have generator vars (llvm#92793)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
llvm-beanz committed May 20, 2024
1 parent e75b58c commit 6430939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/cmake/caches/HLSL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down

0 comments on commit 6430939

Please sign in to comment.