Skip to content

[HLSL] clang-dxc emits dxv related warnings and errors when compiling to textual DXIL #135874

@bogner

Description

@bogner

Running something like clang-dxc.exe -T cs_6_2 x.hlsl does one of two silly things, depending on whether dxv is on your path:

  • warning: dxv not found; resulting DXIL will not be validated
  • error: dxv command failed with exit code 1

The former makes sense when generating a binary (ie, with -Fo out.dxil), but it doesn't really make sense when we're generating text since the validator needs a binary anyway. The latter is even sillier, and results in all compiles to textual IR to fail if dxv is on your path.

We should only attempt to run dxv from the driver when emitting an object.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions