зеркало из https://github.com/microsoft/clang.git
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
This commit is contained in:
Родитель
24ec065270
Коммит
5656a98557
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче