17 lines · plain
1# Including the native target is important because some of LLVM's tests fail if2# you don't.3set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" CACHE STRING "")4 5# Include the DirectX target for DXIL code generation.6set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX" CACHE STRING "")7 8set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "")9 10set(CLANG_ENABLE_HLSL On CACHE BOOL "")11 12if (HLSL_ENABLE_DISTRIBUTION)13 set(LLVM_DISTRIBUTION_COMPONENTS14 "clang;hlsl-resource-headers;clangd"15 CACHE STRING "")16endif()17