Recognize OS X 10.9 and Xcode 5.0

Closes Homebrew/homebrew#20410.
Closes Homebrew/homebrew#20401.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Clemens Gruber 2013-06-11 14:26:11 +02:00 committed by Jack Nagel
parent 652e0982f0
commit 15626b38ca
2 changed files with 5 additions and 2 deletions

View File

@ -206,6 +206,7 @@ module MacOS extend self
"4.6" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 },
"4.6.1" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 },
"4.6.2" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 },
"5.0" => { :clang => "5.0", :clang_build => 500 },
}
def compilers_standard?

View File

@ -23,10 +23,11 @@ module MacOS::Xcode extend self
when 10.5 then "3.1.4"
when 10.6 then "3.2.6"
when 10.7, 10.8 then "4.6.2"
when 10.9 then "5.0"
else
# Default to newest known version of Xcode for unreleased OSX versions.
if MacOS.version > 10.8
"4.6.2"
if MacOS.version > 10.9
"5.0"
else
raise "Mac OS X '#{MacOS.version}' is invalid"
end
@ -127,6 +128,7 @@ module MacOS::Xcode extend self
when 40 then "4.4"
when 41 then "4.5"
when 42 then "4.6"
when 50 then "5.0"
else "4.6"
end
end