diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-08 20:22:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-08 20:22:12 +0000 |
commit | 0b6c15349121a030ce914e5192bb3621c79a0656 (patch) | |
tree | ae7c475ea5416933c8402d03f41464800f1640ae | |
parent | 06767518f56cc7ed2a1ae4a37434ad9bdd7890be (diff) |
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
-rwxr-xr-x | utils/scan-build | 9 |
1 files 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 "</table>\n</body></html>\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) { |