]> granicus.if.org Git - clang/commitdiff
[analyzer] Include a couple more comments on using xcrun to query the SDK.
authorTed Kremenek <kremenek@apple.com>
Wed, 31 Dec 2014 08:19:08 +0000 (08:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 31 Dec 2014 08:19:08 +0000 (08:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225039 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/ccc-analyzer

index c99328221aba9016b736d83ef0ebce37d69ab493..9de38d42aafadc1290527171e268748d1ecfe027 100755 (executable)
@@ -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;
   }