From: Ted Kremenek Date: Tue, 15 Jul 2008 17:09:28 +0000 (+0000) Subject: scan-build now propagates up the exit status of the build command. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5656a985574c00aa9b77fec51d41023e27e7a81f;p=clang 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 575bf25cc5..e23d1903a4 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -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; +