From f5221b08030cf0a8d9d38e0e2e484af760a00c6e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 3 Apr 2008 21:17:14 +0000 Subject: [PATCH] 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 --- utils/scan-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1