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

llvm-svn: 225039
This commit is contained in:
Ted Kremenek 2014-12-31 08:19:08 +00:00
parent 398f46f8f2
commit 67978556a5
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}