Reformat minimum Xcode check

This commit is contained in:
Adam Vandenberg 2011-06-06 08:03:07 -07:00
parent fd533881a6
commit 5bc0625fc3

View File

@ -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