[cfe-commits] r66491 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Mon Mar 9 16:14:38 PDT 2009
Author: kremenek
Date: Mon Mar 9 18:14:38 2009
New Revision: 66491
URL: http://llvm.org/viewvc/llvm-project?rev=66491&view=rev
Log:
scan-build: Also look for clang in the same directory as scan-build.
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=66491&r1=66490&r2=66491&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Mar 9 18:14:38 2009
@@ -82,6 +82,12 @@
##----------------------------------------------------------------------------##
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) {
More information about the cfe-commits
mailing list