Skip to content

Commit 48bad5b

Browse files
authored
[HLSL] Include SPIRV in LLVM_TARGETS_TO_BUILD in the HLSL cmake cache (#133287)
Since SPIRV is no longer an experimental target this wasn't actually enabling it any more.
1 parent 28a3918 commit 48bad5b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/cmake/caches/HLSL.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# Including the native target is important because some of LLVM's tests fail if
22
# you don't.
3-
set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
3+
set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" CACHE STRING "")
44

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

9-
# HLSL support is currently limted to clang, eventually it will expand to
10-
# clang-tools-extra too.
118
set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "")
129

1310
set(CLANG_ENABLE_HLSL On CACHE BOOL "")

0 commit comments

Comments
 (0)