From 43b7bd31f906f4020090ffb4f64a09d35fb13680 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 9 Mar 2009 23:14:38 +0000 Subject: [PATCH] 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 --- utils/scan-build | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.40.0