Skip to content

Commit ded6252

Browse files
authored
[CMake][HLSL] Add SPIRV to target list for build (#86323)
This change just enables the SPIR-V target by default in the HLSL build configurations. Since SPIR-V support is something we expect from the full HLSL compiler releases for pairity with DXC we should enable it in the default developer workflow.
1 parent 865294b commit ded6252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/cmake/caches/HLSL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
44

55
# Include the DirectX target for DXIL code generation, eventually we'll include
66
# SPIR-V here too.
7-
set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD DirectX CACHE STRING "")
7+
set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "DirectX;SPIRV" CACHE STRING "")
88

99
# HLSL support is currently limted to clang, eventually it will expand to
1010
# clang-tools-extra too.

0 commit comments

Comments
 (0)