mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[build] Keep error messages from glslangValidator
The tool is horrible as a built tool due to it not being silent when all is good (it outputs the input file name) and sends its error messages to stdout instead of stderr. Then filtering causes the error code to be lost. This uses a solution found on stack-exchange.
This commit is contained in:
parent
5aa74df922
commit
06d45cff0d
1 changed files with 2 additions and 2 deletions
|
@ -119,11 +119,11 @@ V_XXD_1 =
|
|||
|
||||
%.spv: %
|
||||
@$(mkdir_p) $(builddir)/`dirname $@`
|
||||
$(V_GLSLANG)$(GLSLANGVALIDATOR) -V $< -o $@ > /dev/null
|
||||
$(V_GLSLANG)(((($(GLSLANGVALIDATOR) -V $< -o $@; echo $$? >&3) | sed -e '1d' 1>&2) 3>&1) | (read xs; exit $$xs))
|
||||
|
||||
%.spvc: %
|
||||
@$(mkdir_p) $(builddir)/`dirname $@`
|
||||
$(V_GLSLANG)$(GLSLANGVALIDATOR) --vn `basename $< | tr . _` -V $< -o $@ > /dev/null
|
||||
$(V_GLSLANG)(((($(GLSLANGVALIDATOR) --vn `basename $< | tr . _` -V $< -o $@; echo $$? >&3) | sed -e '1d' 1>&2) 3>&1) | (read xs; exit $$xs))
|
||||
|
||||
shaderdir = @shaderdir@
|
||||
shader_DATA =
|
||||
|
|
Loading…
Reference in a new issue