зеркало из https://github.com/microsoft/clang-1.git
Use the correct 'ccc-analyzer' when the build command is a direct invocation of gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b93fb49566
Коммит
6195c373b8
|
@ -496,10 +496,11 @@ sub RunBuildCommand {
|
|||
my $Args = shift;
|
||||
my $IgnoreErrors = shift;
|
||||
my $Cmd = $Args->[0];
|
||||
my $CCAnalyzer = shift;
|
||||
|
||||
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
|
||||
shift @$Args;
|
||||
unshift @$Args, "ccc-analyzer"
|
||||
unshift @$Args, $CCAnalyzer;
|
||||
}
|
||||
elsif ($IgnoreErrors) {
|
||||
if ($Cmd eq "make" or $Cmd eq "gmake") {
|
||||
|
@ -715,7 +716,7 @@ $ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
|
|||
|
||||
# Run the build.
|
||||
|
||||
RunBuildCommand(\@ARGV, $IgnoreErrors);
|
||||
RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
|
||||
|
||||
# Postprocess the HTML directory.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче