summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-build
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-12-31 08:19:08 +0000
committerTed Kremenek <kremenek@apple.com>2014-12-31 08:19:08 +0000
commit67978556a5eb7e69ba54113c8b3be38e30ebc2a9 (patch)
tree95edcb0c4f88b0f7e8b4b47e8e6281c52a4ab5af /clang/tools/scan-build
parent398f46f8f237497591901c6952dd936dc503c79b (diff)
downloadbcm5719-llvm-67978556a5eb7e69ba54113c8b3be38e30ebc2a9.tar.gz
bcm5719-llvm-67978556a5eb7e69ba54113c8b3be38e30ebc2a9.zip
[analyzer] Include a couple more comments on using xcrun to query the SDK.
llvm-svn: 225039
Diffstat (limited to 'clang/tools/scan-build')
-rwxr-xr-xclang/tools/scan-build/ccc-analyzer4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/tools/scan-build/ccc-analyzer b/clang/tools/scan-build/ccc-analyzer
index c99328221ab..9de38d42aaf 100755
--- a/clang/tools/scan-build/ccc-analyzer
+++ b/clang/tools/scan-build/ccc-analyzer
@@ -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;
}
OpenPOWER on IntegriCloud