scan-build now propagates up the exit status of the build command.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53620 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/scan-build b/utils/scan-build
index 575bf25..e23d190 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -622,7 +622,7 @@
$ENV{'LDPLUSPLUS'} = $LDPLUSPLUS;
}
- system(@$Args);
+ return system(@$Args);
}
##----------------------------------------------------------------------------##
@@ -818,7 +818,7 @@
# Run the build.
-RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
+my $ExitStatus = RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
# Postprocess the HTML directory.
@@ -829,3 +829,6 @@
print "Viewing analysis results: '$HtmlDir/index.html'\n";
`open $HtmlDir/index.html`
}
+
+exit $ExitStatus;
+