================
@@ -527,9 +527,7 @@ option(CLANG_INCLUDE_TESTS
"Generate build targets for the Clang unit tests."
${LLVM_INCLUDE_TESTS})
-option(CLANG_ENABLE_HLSL "Include HLSL build products" Off)
-# While HLSL support is experimental this should stay hidden.
-mark_as_advanced(CLANG_ENABLE_HLSL)
+option(CLANG_ENABLE_HLSL "Include HLSL build products" On)
----------------
farzonl wrote:
If we disable the DIrectX Backend clang-dxc will retun an error.
```
clang-dxc -T cs_6_0 test.hlsl
error: unable to create target: 'No available targets are compatible with
triple "dxilv1.0-unknown-shadermodel6.0-compute"'
1 error generated.
```
That doesn't mean clang-dxc is completely unusable as we can aslo target the
spirv backend
```
../builds/llvm_relwithdebinfo_offload/bin/clang-dxc -T cs_6_0 -spirv test.hlsl
```
If both targets are unavialbe then clang-dxc is unable to do anything.
https://github.com/llvm/llvm-project/pull/214066
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits