summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-02 15:34:12 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-02 15:34:12 +0000
commit37e908a6f0cc63ed812892435c2cdea88fba45e1 (patch)
tree81e1d10b13a4190dea29d0430119560a6b272201 /clang
parent21b8bed571a6397a9fc736851e2281ed4ad13ffa (diff)
downloadbcm5719-llvm-37e908a6f0cc63ed812892435c2cdea88fba45e1.tar.gz
bcm5719-llvm-37e908a6f0cc63ed812892435c2cdea88fba45e1.zip
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! llvm-svn: 49089
Diffstat (limited to 'clang')
-rwxr-xr-xclang/utils/scan-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build
index 59b0f5f2362..aef4e67fb56 100755
--- a/clang/utils/scan-build
+++ b/clang/utils/scan-build
@@ -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"
}
OpenPOWER on IntegriCloud