microsoft / microsoft/DirectXShaderCompiler
Dumping header dependencies to file prevents error output
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
(Using DXC version 2023-03-01)
I run into an issue where adding header dependency dumping to file options (a.k.a. -MD -MF file.d) has prevented the error log to be outputted in the console. Expected behaviour is having the errors outputted to the command line since the dependencies are dumped to a file instead of the console.
Because of this, I currently have to run the dxc command twice (once with the dep dumping and once without) to get the proper command line output, which is not the best.
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
Reproduce the behavior with the dxc command using -MD -MF file.d, comparing its console output with a run that omits dependency dumping. Trace the command-line handling for header dependency output and ensure compilation errors remain visible on the command line while dependencies are written to the requested file; verify both behaviors together.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100