diff options
author | Ted Kremenek <kremenek@apple.com> | 2014-12-31 08:19:08 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2014-12-31 08:19:08 +0000 |
commit | 67978556a5eb7e69ba54113c8b3be38e30ebc2a9 (patch) | |
tree | 95edcb0c4f88b0f7e8b4b47e8e6281c52a4ab5af /clang/tools/scan-build | |
parent | 398f46f8f237497591901c6952dd936dc503c79b (diff) | |
download | bcm5719-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-x | clang/tools/scan-build/ccc-analyzer | 4 |
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; } |