shithub: riscv

Download patch

ref: 88a8ca5c8de86f1f3e5b43a490e0e70c6b456072
parent: e390486e927158c6b12b3f5242535998c20baf8d
author: Jacob Moody <moody@posixcafe.org>
date: Thu Jun 24 09:53:37 EDT 2021

cc: create .$O files with DMTMP

--- a/sys/src/cmd/cc/lex.c
+++ b/sys/src/cmd/cc/lex.c
@@ -229,7 +229,7 @@
 			dup(2, 1);
 		}
 	} else {
-		c = mycreat(outfile, 0664);
+		c = mycreat(outfile, 0664 | DMTMP);
 		if(c < 0) {
 			diag(Z, "cannot open %s - %r", outfile);
 			outfile = 0;