[cfe-commits] r67608 - in /cfe/trunk/utils: ccc-analyzer scan-build

Ted Kremenek kremenek at apple.com
Mon Mar 23 21:29:13 PDT 2009


Author: kremenek
Date: Mon Mar 23 23:29:13 2009
New Revision: 67608

URL: http://llvm.org/viewvc/llvm-project?rev=67608&view=rev
Log:
Update scan-build/ccc-analyzer to use 'clang-cc' instead of 'clang'.

Modified:
    cfe/trunk/utils/ccc-analyzer
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=67608&r1=67607&r2=67608&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Mar 23 23:29:13 2009
@@ -332,7 +332,7 @@
 
 # Determine what clang executable to use.
 my $Clang = $ENV{'CLANG'};
-if (!defined $Clang) { $Clang = 'clang'; }
+if (!defined $Clang) { $Clang = 'clang-cc'; }
 
 # Get the HTML output directory.
 my $HtmlDir = $ENV{'CCC_ANALYZER_HTML'};

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=67608&r1=67607&r2=67608&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Mar 23 23:29:13 2009
@@ -81,17 +81,17 @@
 # Some initial preprocessing of Clang options.
 ##----------------------------------------------------------------------------##
 
-my $ClangSB = Cwd::realpath("$RealBin/bin/clang");
+my $ClangSB = Cwd::realpath("$RealBin/bin/clang-cc");
 
 # Also look for 'clang' in the same directory as scan-build.
 if (!defined $ClangSB || ! -x $ClangSB) {
-  $ClangSB = Cwd::realpath("$RealBin/clang");
+  $ClangSB = Cwd::realpath("$RealBin/clang-cc");
 }
 
 my $Clang = $ClangSB;
 
 if (!defined $ClangSB || ! -x $ClangSB) {
-  $Clang = "clang";
+  $Clang = "clang-cc";
 }
 
 my %AvailableAnalyses;
@@ -1165,8 +1165,8 @@
 }
 
 if (!defined $ClangSB || ! -x $ClangSB) {
-  Diag("'clang' executable not found in '$RealBin/bin'.\n");
-  Diag("Using 'clang' from path.\n");
+  Diag("'clang-cc' executable not found in '$RealBin/bin'.\n");
+  Diag("Using 'clang-cc' from path.\n");
 }
 
 if (defined $CXX) {





More information about the cfe-commits mailing list