r225039 - [analyzer] Include a couple more comments on using xcrun to query the SDK.

Ted Kremenek kremenek at apple.com
Wed Dec 31 00:19:08 PST 2014


Author: kremenek
Date: Wed Dec 31 02:19:08 2014
New Revision: 225039

URL: http://llvm.org/viewvc/llvm-project?rev=225039&view=rev
Log:
[analyzer] Include a couple more comments on using xcrun to query the SDK.

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

Modified: cfe/trunk/tools/scan-build/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/ccc-analyzer?rev=225039&r1=225038&r2=225039&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/ccc-analyzer (original)
+++ cfe/trunk/tools/scan-build/ccc-analyzer Wed Dec 31 02:19:08 2014
@@ -41,11 +41,15 @@ my $Clang;
 my $DefaultCCompiler;
 my $DefaultCXXCompiler;
 my $IsCXX;
+
+# If on OSX, use xcrun to determine the SDK root.
 my $UseXCRUN = 0;
 
 if (`uname -a` =~ m/Darwin/) {
   $DefaultCCompiler = 'clang';
   $DefaultCXXCompiler = 'clang++';
+  # Older versions of OSX do not have xcrun to
+  # query the SDK location.
   if (-x "/usr/bin/xcrun") {
     $UseXCRUN = 1;
   }





More information about the cfe-commits mailing list