From: Ted Kremenek Date: Thu, 3 Apr 2008 21:17:14 +0000 (+0000) Subject: More reliably remove '\n' from queries of the location of ccc-analyzer X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5221b08030cf0a8d9d38e0e2e484af760a00c6e;p=clang More reliably remove '\n' from queries of the location of ccc-analyzer git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49189 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/scan-build b/utils/scan-build index ba098f3f98..548f64830b 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -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) {