[qfcc] Catch errors during spirv code-gen

Seeing errors built successful builds was a bit disconcerting.
This commit is contained in:
Bill Currie 2025-02-16 18:51:28 +09:00
parent 3337d45aa0
commit 66b69e33da

View file

@ -460,7 +460,7 @@ compile_to_obj (const char *file, const char *obj, rua_ctx_t *ctx)
err = pr.error_count;
if (!err) {
if (options.code.spirv) {
err = spirv_write (&pr, obj);
err = spirv_write (&pr, obj) || pr.error_count;
} else {
qfo = qfo_from_progs (&pr);
err = qfo_write (qfo, obj);