]> granicus.if.org Git - clang/commitdiff
More reliably remove '\n' from queries of the location of ccc-analyzer
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 21:17:14 +0000 (21:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 21:17:14 +0000 (21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49189 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index ba098f3f985532a5d762ad26ad1c72a1adaff93d..548f64830bdab06b7d1fae4bd62d7343413d4407 100755 (executable)
@@ -428,7 +428,7 @@ $HtmlDir = GetHTMLRunDir($HtmlDir);
 SetHtmlEnv(\@ARGV, $HtmlDir);
 
 my $Cmd = `which ccc-analyzer`;
-chop $Cmd;
+$Cmd =~ s/\015?\012//;
 $ENV{'CC'} = $Cmd;
 
 if ($Verbose >= 2) {