Issue 137370
Summary [HLSL][SPIRV] Allow source files with extensions other than .hlsl in dxc mode.
Labels new issue
Assignees
Reporter s-perron
    Not everyone uses .hlsl for their HLSL source files. Some people follow the GLSL convention to have their files end with an extension based on the shader stage. At this time, these files are treated like object files, and then the compiler fails because the tool chain does not support linking:

```
» clang-dxc -spirv -T cs_6_8 -E main headless.comp -Fo headless.comp.spv                                                                                                                                  130 ↵ stevenperron@stevenperron-cloudtop
Linking is not supported by this toolchain
UNREACHABLE executed at llvm/llvm-project/clang/lib/Driver/ToolChain.cpp:562!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
```

We should either give a more informative error, or we should assume they are HLSL source files.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to