scan-build now looks for ccc-analyzer first in the 'bin' subdirectory and then the directory where scan-build lives.

llvm-svn: 65483
This commit is contained in:
Ted Kremenek 2009-02-25 22:54:02 +00:00
parent a49de9de2e
commit 16f3d8dcfb
1 changed files with 5 additions and 4 deletions

View File

@ -1149,10 +1149,11 @@ $HtmlDir = GetHTMLRunDir($HtmlDir);
# Set the appropriate environment variables.
SetHtmlEnv(\@ARGV, $HtmlDir);
my $Cmd = Cwd::realpath("$RealBin/ccc-analyzer");
DieDiag("Executable 'ccc-analyzer' does not exist at '$Cmd'\n")
if (! -x $Cmd);
my $Cmd = Cwd::realpath("$RealBin/bin/ccc-analyzer");
if (!defined $Cmd || ! -x $Cmd) {
$Cmd = Cwd::realpath("$RealBin/ccc-analyzer");
DieDiag("Executable 'ccc-analyzer' does not exist at '$Cmd'\n");
}
if (!defined $ClangSB || ! -x $ClangSB) {
Diag("'clang' executable not found in '$RealBin/bin'.\n");