[Clang] ensure mangled names are valid identifiers before being suggested in ifunc...
[llvm-project.git] / clang / cmake / caches / HLSL.cmake
blobed813f60c9c69970e8c93784b39cc3955693a062
1 # Including the native target is important because some of LLVM's tests fail if
2 # you don't.
3 set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
5 # Include the DirectX target for DXIL code generation, eventually we'll include
6 # SPIR-V here too.
7 set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX;SPIRV" CACHE STRING "")
9 # HLSL support is currently limted to clang, eventually it will expand to
10 # clang-tools-extra too.
11 set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "")
13 set(CLANG_ENABLE_HLSL On CACHE BOOL "")
15 if (HLSL_ENABLE_DISTRIBUTION)
16   set(LLVM_DISTRIBUTION_COMPONENTS
17       "clang;hlsl-resource-headers;clangd"
18       CACHE STRING "")
19 endif()