[cfe-commits] r52913 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Mon Jun 30 11:18:16 PDT 2008
Author: kremenek
Date: Mon Jun 30 13:18:16 2008
New Revision: 52913
URL: http://llvm.org/viewvc/llvm-project?rev=52913&view=rev
Log:
When inspecting the build command, strip off the preceding path to the build command.
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=52913&r1=52912&r2=52913&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Jun 30 13:18:16 2008
@@ -534,6 +534,11 @@
my $Cmd = $Args->[0];
my $CCAnalyzer = shift;
+ # Get only the part of the command after the last '/'.
+ if ($Cmd =~ /\/([^\/]+)$/) {
+ $Cmd = $1;
+ }
+
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
shift @$Args;
unshift @$Args, $CCAnalyzer;
More information about the cfe-commits
mailing list