ref: a013f992b593ae55453f52de3a9d0f41e0bc4b4f
parent: 8673b63eb344eac0734ff3ed335d28fb6154e3ca
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Nov 4 18:20:50 EDT 2022
cc: do not wait for cpp to finish if there were errors
--- a/sys/src/cmd/cc/lex.c
+++ b/sys/src/cmd/cc/lex.c
@@ -300,7 +300,7 @@
yyparse();
if(!debug['a'] && !debug['Z'])
gclean();
- if(mywait(&status) > 0 && status != 0)
+ if(nerrors == 0 && mywait(&status) > 0 && status != 0)
nerrors++;
return nerrors;
}