ref: 43bfea0df4367b0239b0fe35e1307e460ed86e4f
parent: 5c41fd94d8c8e9e5bd30060e5a2323e84788b5eb
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;
}
--
⑨