shithub: scc

Download patch

ref: 4e98e79066fce8a5274c5b3583e1fbc1c60df7c6
parent: f407880e9682d9d44280a5ea3159d5bbde1d7318
author: Quentin Rameau <quinq@fifth.space>
date: Wed Jun 15 16:53:51 EDT 2016

[cc1] be sure to return the error code when it is set

--- a/cc1/main.c
+++ b/cc1/main.c
@@ -18,11 +18,11 @@
 static char *output;
 int onlycpp;
 
+extern int failure;
+
 static void
 clean(void)
 {
-	extern int failure;
-
 	if (failure && output)
 		remove(output);
 }
@@ -98,5 +98,5 @@
 			decl();
 	}
 
-	return 0;
+	return failure;
 }