Do equality testing, not regex, when the build command is gcc. This matches

better with what compiler invocations that ccc-analyzer actually intercepts.

Fixes suggested by Sam Bishop!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-04-02 15:34:12 +00:00
Родитель b327ce0295
Коммит 6a43ba9cd2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -150,7 +150,7 @@ sub RunBuildCommand {
my $Args = shift;
my $Cmd = $Args->[0];
if ($Cmd =~ /gcc/ or $Cmd eq "cc" or $Cmd =~ /"llvm-gcc"/) {
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
shift @$Args;
unshift @$Args, "ccc-analyzer"
}