aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-06 08:03:07 -0700
committerAdam Vandenberg2011-06-06 08:03:07 -0700
commit3d1e5330575bbbae6981d00bd76df7912df26f89 (patch)
tree7759e781aaffc234ab48ce3678b628927d90b869 /Library
parentae4e418437fa4be18adbf8f82e96e3d4c607a647 (diff)
downloadhomebrew-3d1e5330575bbbae6981d00bd76df7912df26f89.tar.bz2
Reformat minimum Xcode check
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb10
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