[PATCH 3/6] cgcc: preserve sparse exit code if -no-compile is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Roskin <proski@xxxxxxx>
---

 cgcc |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/cgcc b/cgcc
index 226a7a7..2b9f89c 100755
--- a/cgcc
+++ b/cgcc
@@ -50,8 +50,11 @@ if ($do_check) {
 	$check .= &add_specs ('host_os_specs');
     }
     print "$check\n" if $verbose;
-#    exit 1;
-    system ($check);
+    if ($do_compile) {
+	system ($check);
+    } else {
+	exec ($check);
+    }
 }
 
 if ($do_compile) {


-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux