| 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;SPIRV" CACHE STRING "") |
| 4 |
|
| 5 |
# Include the DirectX target for DXIL code generation. |
| 6 |
set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX" CACHE STRING "") |
| 7 |
|
| 8 |
set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "") |
| 9 |
|
| 10 |
set(CLANG_ENABLE_HLSL On CACHE BOOL "") |
| 11 |
|
| 12 |
if (HLSL_ENABLE_DISTRIBUTION) |
| 13 |
set(LLVM_DISTRIBUTION_COMPONENTS |
| 14 |
"clang;hlsl-resource-headers;clangd" |
| 15 |
CACHE STRING "") |
| 16 |
endif() |