From: Ted Kremenek Date: Mon, 9 Mar 2009 23:14:38 +0000 (+0000) Subject: scan-build: Also look for clang in the same directory as scan-build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43b7bd31f906f4020090ffb4f64a09d35fb13680;p=clang scan-build: Also look for clang in the same directory as scan-build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66491 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/scan-build b/utils/scan-build index 9e977e838b..47622bfd50 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -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) {