From cd0db51343ff7c5a35173594725978c81c36c0fc Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 17 Nov 2017 19:53:38 +0000 Subject: diagnostic: check if Xcode needs CLT installed. Require the CLT on all but the latest version of macOS to avoid the continuous workarounds for SDK weirdness. --- Library/Homebrew/os/mac/xcode.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library/Homebrew/os/mac/xcode.rb') diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 96be56e3b..ae725d948 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -40,6 +40,15 @@ module OS version < minimum_version end + def latest_sdk_version? + OS::Mac.version == OS::Mac.latest_sdk_version + end + + def needs_clt_installed? + return false if latest_sdk_version? + without_clt? + end + def outdated? return false unless installed? version < latest_version -- cgit v1.2.3