diff options
| author | Jack Nagel | 2012-03-19 11:26:39 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-20 19:06:59 -0500 |
| commit | fa837edcbbde0d921090aa54660fa4628252f581 (patch) | |
| tree | 2d99a25418c08614d0dfa4fb8f65a146c8daefcd /Library/Homebrew/cmd/install.rb | |
| parent | f00099a1798685271ad40c53a0e6c7bfaef3299d (diff) | |
| download | brew-fa837edcbbde0d921090aa54660fa4628252f581.tar.bz2 | |
Update Xcode version checks
Closes Homebrew/homebrew#11044.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index bfc5d3e7b..e4ffe3268 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -34,20 +34,10 @@ module Homebrew extend self raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable? or HOMEBREW_PREFIX.to_s == '/usr/local' end - def check_cc - if MacOS.snow_leopard? - if MacOS.llvm_build_version < RECOMMENDED_LLVM - opoo "You should upgrade to Xcode 3.2.6" - end - else - if (MacOS.gcc_40_build_version < RECOMMENDED_GCC_40) or (MacOS.gcc_42_build_version < RECOMMENDED_GCC_42) - opoo "You should upgrade to Xcode 3.1.4" - end - end - rescue - # the reason we don't abort is some formula don't require Xcode - # TODO allow formula to declare themselves as "not needing Xcode" - opoo "Xcode is not installed! Builds may fail!" + def check_xcode + require 'cmd/doctor' + xcode = Checks.new.check_for_latest_xcode + opoo xcode unless xcode.nil? end def check_macports @@ -70,7 +60,7 @@ module Homebrew extend self def perform_preinstall_checks check_ppc check_writable_install_location - check_cc + check_xcode check_macports check_cellar end |
