diff options
| author | Adam Vandenberg | 2011-06-06 08:03:07 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-06 08:03:07 -0700 |
| commit | 5bc0625fc3f92e36c3e076552063f8e001352724 (patch) | |
| tree | 927349bca439e5f397a163c2bdd10c6f0be61f3a | |
| parent | fd533881a68f282bc218d02a08ea9db7a605774f (diff) | |
| download | brew-5bc0625fc3f92e36c3e076552063f8e001352724.tar.bz2 | |
Reformat minimum Xcode check
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index d1b4519c6..00f978d02 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -27,10 +27,14 @@ module Homebrew extend self end def check_cc - if MACOS_VERSION >= 10.6 - opoo "You should upgrade to Xcode 3.2.3" if MacOS.llvm_build_version < RECOMMENDED_LLVM + if MacOS.snow_leopard? + if MacOS.llvm_build_version < RECOMMENDED_LLVM + opoo "You should upgrade to Xcode 3.2.6" + end else - opoo "You should upgrade to Xcode 3.1.4" if (MacOS.gcc_40_build_version < RECOMMENDED_GCC_40) or (MacOS.gcc_42_build_version < RECOMMENDED_GCC_42) + 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 |
