From 722a43aabeff3d4d3d1f01508f5f88f16936efd1 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Fri, 18 Sep 2015 15:11:04 +0100 Subject: [PATCH] doctor: add xcode 7 SDK check --- Library/Homebrew/cmd/doctor.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 39d3203023..386c89891f 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