[cfe-commits] r53620 - /cfe/trunk/utils/scan-build

Ted Kremenek kremenek at apple.com
Tue Jul 15 10:09:28 PDT 2008


Author: kremenek
Date: Tue Jul 15 12:09:28 2008
New Revision: 53620

URL: http://llvm.org/viewvc/llvm-project?rev=53620&view=rev
Log:
scan-build now propagates up the exit status of the build command.

Modified:
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=53620&r1=53619&r2=53620&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Tue Jul 15 12:09:28 2008
@@ -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;
+





More information about the cfe-commits mailing list