xcode: upgrade for Xcode 10.2 release

This commit is contained in:
Chongyu Zhu 2019-03-28 03:39:23 +08:00
parent fffa7a37e6
commit 0299790aa7
No known key found for this signature in database
GPG Key ID: 1A43E3C9100B38F5
2 changed files with 6 additions and 5 deletions

View File

@ -200,6 +200,7 @@ module OS
"9.4" => { clang: "9.1", clang_build: 902 },
"10.0" => { clang: "10.0", clang_build: 1000 },
"10.1" => { clang: "10.0", clang_build: 1000 },
"10.2" => { clang: "10.0", clang_build: 1001 },
}.freeze
def compilers_standard?

View File

@ -14,12 +14,12 @@ module OS
when "10.11" then "8.2.1"
when "10.12" then "9.2"
when "10.13" then "10.1"
when "10.14" then "10.1"
when "10.14" then "10.2"
else
raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease?
# Default to newest known version of Xcode for unreleased macOS versions.
"10.1"
"10.2"
end
end
@ -171,8 +171,8 @@ module OS
when 81 then "8.3"
when 90 then "9.2"
when 91 then "9.4"
when 100 then "10.1"
else "10.1"
when 100 then "10.2"
else "10.2"
end
end
@ -240,7 +240,7 @@ module OS
# on the older supported platform for that Xcode release, i.e there's no
# CLT package for 10.11 that contains the Clang version from Xcode 8.
case MacOS.version
when "10.14" then "1000.10.44.2"
when "10.14" then "1001.0.46.3"
when "10.13" then "1000.10.44.2"
when "10.12" then "900.0.39.2"
when "10.11" then "800.0.42.1"