[clang] [HLSL] Include SPIRV in LLVM_TARGETS_TO_BUILD in the HLSL cmake cache (PR #133287)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 27 10:48:20 PDT 2025
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/133287
Since SPIRV is no longer an experimental target this wasn't actually enabling it any more.
>From 5c4b19d99275440eef8a360f5d8f1affd7869e0e Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Thu, 27 Mar 2025 10:10:31 -0700
Subject: [PATCH] [HLSL] Include SPIRV in LLVM_TARGETS_TO_BUILD in the HLSL
cmake cache
Since SPIRV is no longer an experimental target this wasn't actually enabling
it any more.
---
clang/cmake/caches/HLSL.cmake | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/clang/cmake/caches/HLSL.cmake b/clang/cmake/caches/HLSL.cmake
index ed813f60c9c69..24afcbbda2a40 100644
--- a/clang/cmake/caches/HLSL.cmake
+++ b/clang/cmake/caches/HLSL.cmake
@@ -1,13 +1,10 @@
# 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 "")
+set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" 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;SPIRV" CACHE STRING "")
+# Include the DirectX target for DXIL code generation.
+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;clang-tools-extra" CACHE STRING "")
set(CLANG_ENABLE_HLSL On CACHE BOOL "")
More information about the cfe-commits
mailing list