aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorDominyk Tiller2016-08-30 03:54:24 +0100
committerDominyk Tiller2016-08-30 03:54:24 +0100
commit1408b5ffd4dfbac840580ea9946237d8164941d8 (patch)
tree2275cddd0488848dbcc644ebf726f6654a8b9325 /Library/Homebrew
parent8e29cf1b1d39f5d86aaeb702597aa34d97cd763a (diff)
downloadbrew-1408b5ffd4dfbac840580ea9946237d8164941d8.tar.bz2
diagnostic: add strict_development_tools_checks
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/os/mac/diagnostic.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index 120e5d15c..11d497d60 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -12,6 +12,13 @@ module Homebrew
]
end
+ def strict_development_tools_checks
+ %w[
+ check_xcode_up_to_date
+ check_clt_up_to_date
+ ]
+ end
+
def check_for_unsupported_osx
return if ARGV.homebrew_developer?
@@ -51,10 +58,17 @@ module Homebrew
def check_xcode_up_to_date
return unless MacOS::Xcode.installed? && MacOS::Xcode.outdated?
+ if OS::Mac.prerelease?
+ xcode_select_nudge = <<-EOS.undent
+ If #{MacOS::Xcode.latest_version} is installed, you may need to:
+ sudo xcode-select --switch /path/to/Xcode-beta.app
+ EOS
+ end
+
<<-EOS.undent
Your Xcode (#{MacOS::Xcode.version}) is outdated
Please update to Xcode #{MacOS::Xcode.latest_version}.
- #{MacOS::Xcode.update_instructions}
+ #{MacOS::Xcode.update_instructions}#{xcode_select_nudge}
EOS
end