1b870620cSChris Bieneman# Including the native target is important because some of LLVM's tests fail if 2b870620cSChris Bieneman# you don't. 3b870620cSChris Bienemanset(LLVM_TARGETS_TO_BUILD Native CACHE STRING "") 4b870620cSChris Bieneman 5b870620cSChris Bieneman# Include the DirectX target for DXIL code generation, eventually we'll include 6b870620cSChris Bieneman# SPIR-V here too. 7ded6252dSChris Bset(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX;SPIRV" CACHE STRING "") 8b870620cSChris Bieneman 9b870620cSChris Bieneman# HLSL support is currently limted to clang, eventually it will expand to 10b870620cSChris Bieneman# clang-tools-extra too. 118c5e487eSChris Bset(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "") 12e432108bSChris Bieneman 13e432108bSChris Bienemanset(CLANG_ENABLE_HLSL On CACHE BOOL "") 148c5e487eSChris B 15*6430939bSChris Bif (HLSL_ENABLE_DISTRIBUTION) 168c5e487eSChris B set(LLVM_DISTRIBUTION_COMPONENTS 178c5e487eSChris B "clang;hlsl-resource-headers;clangd" 188c5e487eSChris B CACHE STRING "") 198c5e487eSChris Bendif() 20