| # Including the native target is important because some of LLVM's tests fail if | |
| # you don't. | |
| set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "") | |
| # Include the DirectX target for DXIL code generation, eventually we'll include | |
| # SPIR-V here too. | |
| set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD DirectX 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(CLANG_ENABLE_HLSL On CACHE BOOL "") |