[clang] b870620 - [NFC] Add CMake cache file for HLSL

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 13 09:28:37 PDT 2022


Author: Chris Bieneman
Date: 2022-04-13T11:28:18-05:00
New Revision: b870620c29814b71b0c9788f17f8054f04ae2d40

URL: https://github.com/llvm/llvm-project/commit/b870620c29814b71b0c9788f17f8054f04ae2d40
DIFF: https://github.com/llvm/llvm-project/commit/b870620c29814b71b0c9788f17f8054f04ae2d40.diff

LOG: [NFC] Add CMake cache file for HLSL

This just adds a trivial CMake cache file (which will grow over time)
to handle the common build configuration for the HLSL compiler.

Added: 
    clang/cmake/caches/HLSL.cmake

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/clang/cmake/caches/HLSL.cmake b/clang/cmake/caches/HLSL.cmake
new file mode 100644
index 0000000000000..e2d02b6b281a3
--- /dev/null
+++ b/clang/cmake/caches/HLSL.cmake
@@ -0,0 +1,11 @@
+# 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 "")
+
+# Include the DirectX target for DXIL code generation, eventually we'll include
+# SPIR-V here too.
+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" CACHE STRING "")


        


More information about the cfe-commits mailing list