Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] Fix the exit code of MSVC build scripts on cygwin

From: Alex Riesen <hidden>
Date: 2016-06-15 22:47:29

On Thu, Oct 8, 2009 at 17:33, Ramsay Jones [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/compat/vcbuild/scripts/clink.pl b/compat/vcbuild/scripts/clink.pl
index 0ffd59f..26aec61 100644
--- a/compat/vcbuild/scripts/clink.pl
+++ b/compat/vcbuild/scripts/clink.pl
@@ -45,4 +45,6 @@ if ($is_linking) {
       push(@args, @cflags);
 }
 #printf("**** @args\n");
-exit system(@args);
+system(@args) == 0
+       or exit 1;
+exit 0;
exit(system(@args) != 0);

Yours looks a little verbose...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help