Skip to content

Commit

Permalink
Makefile: validate-spv: update spirv-as and spirv-val invocations. (#…
Browse files Browse the repository at this point in the history
…2374)

Newer versions of these programs require `-` as a filename argument to
read from standard input.
  • Loading branch information
jimblandy authored Jun 6, 2023
1 parent b7f4006 commit e8a7e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ validate-spv: $(SNAPSHOTS_BASE_OUT)/spv/*.spvasm
echo "Validating" $${file#"$(SNAPSHOTS_BASE_OUT)/"}; \
version_line=$$(head -2 $${file} | tail -1); \
version=$${version_line#"; Version: "};\
cat $${file} | spirv-as --target-env spv$${version} -o - | spirv-val; \
cat $${file} | spirv-as --target-env spv$${version} - -o - | spirv-val -; \
done

validate-msl: $(SNAPSHOTS_BASE_OUT)/msl/*.msl
Expand Down

0 comments on commit e8a7e50

Please sign in to comment.