From 0b6c15349121a030ce914e5192bb3621c79a0656 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 8 Apr 2008 20:22:12 +0000 Subject: [PATCH] Set the location of ccc-analyzer to be the same directory as where scan-build is located. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49397 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/scan-build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/scan-build b/utils/scan-build index 29ad085c48..b4efa7bb9c 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -265,8 +265,6 @@ ENDTEXT print OUT "\n\n"; close(OUT); - print "$RealBin\n"; - CopyJS($Dir); } @@ -427,8 +425,11 @@ $HtmlDir = GetHTMLRunDir($HtmlDir); SetHtmlEnv(\@ARGV, $HtmlDir); -my $Cmd = `which ccc-analyzer`; -$Cmd =~ s/\015?\012//; +my $Cmd = "$RealBin/ccc-analyzer"; + +die "$Prog: Executable 'ccc-analyzer' does not exist at '$Cmd'\n" + if (! -x $Cmd); + $ENV{'CC'} = $Cmd; if ($Verbose >= 2) { -- 2.40.0