microsoft / microsoft/DirectXShaderCompiler
DXC linker API doesn't include DXC_OUT_PDB in the result
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Description
When using the DXC linker, the result doesn't emit anything for DXC_OUT_PDB.
It looks like some additional outputs were added with PR #5678, however DXC_OUT_PDB was not one of them.
Steps to Reproduce
Pass -Zi and -Qstrip_debug in the arguments to IDxcLinker::Link, use QueryInterface to retrieve the IDxcResult from the linker, and call GetOutput(DXC_OUT_PDB, ...) on the linker result.
Actual Behavior
GetResult returns E_INVALIDARG
Environment
- DXC version dxcompiler.dll: 1.7 - 1.7.2308.7 (69e54e2); dxil.dll: 1.7(101.7.2308.12)
- Host Operating System Windows 10
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 by comparing the additional outputs introduced in PR #5678 with the IDxcLinker::Link result and the IDxcResult::GetOutput entry point. Reproduce the -Zi and -Qstrip_debug case, then verify that GetOutput(DXC_OUT_PDB, ...) succeeds for the linker result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100