From 6a43ba9cd247811b6d48ffbd4ee3c911c8c4b458 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 2 Apr 2008 15:34:12 +0000 Subject: [PATCH] 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 --- utils/scan-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/scan-build b/utils/scan-build index 59b0f5f236..aef4e67fb5 100755 --- a/utils/scan-build +++ b/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" } -- 2.40.0