diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index d1b4519c67..00f978d024 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