Reformat minimum Xcode check
This commit is contained in:
parent
fd533881a6
commit
5bc0625fc3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user