Skip to content
Snippets Groups Projects
Commit 5bc0625f authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Reformat minimum Xcode check

parent fd533881
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment