forked from OSchip/llvm-project
scan-build: Also look for clang in the same directory as scan-build.
llvm-svn: 66491
This commit is contained in:
parent
04852aa933
commit
6f74418bd7
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue