scan-build: Also look for clang in the same directory as scan-build.

llvm-svn: 66491
This commit is contained in:
Ted Kremenek 2009-03-09 23:14:38 +00:00
parent 04852aa933
commit 6f74418bd7
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ sub DieDiag {
##----------------------------------------------------------------------------##
my $ClangSB = Cwd::realpath("$RealBin/bin/clang");
# Also look for 'clang' in the same directory as scan-build.
if (!defined $ClangSB || ! -x $ClangSB) {
$ClangSB = Cwd::realpath("$RealBin/clang");
}
my $Clang = $ClangSB;
if (!defined $ClangSB || ! -x $ClangSB) {