]> granicus.if.org Git - clang/commitdiff
scan-build now propagates up the exit status of the build command.
authorTed Kremenek <kremenek@apple.com>
Tue, 15 Jul 2008 17:09:28 +0000 (17:09 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 15 Jul 2008 17:09:28 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53620 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 575bf25cc57c74b55b3087920c6d4598db2d5ca3..e23d1903a478d4727e65e5d13b3641661a9c9d8d 100755 (executable)
@@ -622,7 +622,7 @@ sub RunBuildCommand {
     $ENV{'LDPLUSPLUS'} = $LDPLUSPLUS;    
   }
   
-  system(@$Args);
+  return system(@$Args);
 }
 
 ##----------------------------------------------------------------------------##
@@ -818,7 +818,7 @@ if (scalar(@AnalysesToRun)) {
 
 # Run the build.
 
-RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
+my $ExitStatus = RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
 
 # Postprocess the HTML directory.
 
@@ -829,3 +829,6 @@ if ($ViewResults and -r "$HtmlDir/index.html") {
   print "Viewing analysis results: '$HtmlDir/index.html'\n";
   `open $HtmlDir/index.html`
 }
+
+exit $ExitStatus;
+