microsoft / microsoft/DirectXShaderCompiler
[Feature Request] Hidden option -select-validator not shown in help
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
If the dxil.dll is found in the path, the external validator will be defaulted. This creates a problem when compiling SM 6.8 HLSL as it fails to verify. The user would need to provide -select-validator internal to successfully compile.
Version fafbc4272540c09cd070ca8a7a8dcda2788bc108 of main and 476d34409411d06285097e611d933b962912507a of release-1.8.2403
Example commands:
> ..\hlsl.bin\Debug\bin\dxc.exe -T lib_6_8 -Vd tools/clang/test/HLSLFileCheck/hlsl/workgraph/wavesize.hlsl
[IR omitted, PASSED]
> set PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64;%PATH%
> ..\hlsl.bin\Debug\bin\dxc.exe -T lib_6_8 -Vd tools/clang/test/HLSLFileCheck/hlsl/workgraph/wavesize.hlsl
error: validator version 1,6 does not support target profile.
> ..\hlsl.bin\Debug\bin\dxc.exe -select-validator internal -T lib_6_8 -Vd tools/clang/test/HLSLFileCheck/hlsl/workgraph/wavesize.hlsl
[IR omitted, PASSED]
Listing this option in -help is suggested.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the dxc.exe command-line help handling and inspect how validator options are exposed. Confirm that -select-validator appears in -help, then verify the documented option against the example commands and validator-selection behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, compilers
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100