diff options
| author | Dominyk Tiller | 2015-09-18 15:11:04 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2015-09-18 15:11:48 +0100 |
| commit | 722a43aabeff3d4d3d1f01508f5f88f16936efd1 (patch) | |
| tree | 12ced160011f928f96107fb8adffa4176d648262 /Library/Homebrew | |
| parent | badea990973e6464d47e2ec43ff34fb7d45a0069 (diff) | |
| download | brew-722a43aabeff3d4d3d1f01508f5f88f16936efd1.tar.bz2 | |
doctor: add xcode 7 SDK check
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 39d320302..386c89891 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -573,6 +573,19 @@ class Checks end end + # Xcode 7 lacking the 10.10 SDK is forcing sysroot to be declared + # nil on 10.10 & breaking compiles. CLT is workaround. + def check_sdk_path_not_nil_yosemite + if MacOS.version == :yosemite && MacOS::Xcode.installed? && MacOS.sdk_path.nil? + <<-EOS.undent + Xcode 7 lacks the 10.10 SDK which can cause some builds to fail. + We recommend installing the Command Line Tools with: + xcode-select --install + to resolve this issue. + EOS + end + end + def check_user_path_1 $seen_prefix_bin = false $seen_prefix_sbin = false |
