microsoft/spirv_to_dxil: Fix non-Windows build.
authorVinson Lee <vlee@freedesktop.org>
Wed, 10 Nov 2021 05:25:52 +0000 (21:25 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 11 Nov 2021 01:37:16 +0000 (01:37 +0000)
commit1ca90f8752315389ae18b2c0d3773224db3c4c31
tree42ed6ed300a519a4d03b53c67f763575802476c6
parent07aaef5721093253fbd2edabe9d0ca4e58a3413a
microsoft/spirv_to_dxil: Fix non-Windows build.

../src/microsoft/spirv_to_dxil/dxil_validation.cpp: In function ‘bool validate_dxil(dxil_spirv_object*)’:
../src/microsoft/spirv_to_dxil/dxil_validation.cpp:129:12: error: ‘stderr’ was not declared in this scope
  129 |    fprintf(stderr, "DXIL validation only available in Windows.\n");
      |            ^~~~~~

Fixes: 37c366e2830 ("microsoft/spirv_to_dxil: Add DXIL validation to spirv2dxil")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13736>
src/microsoft/spirv_to_dxil/dxil_validation.cpp