Merge pull request #16389 from Bo98/xcode-15.1

os/mac/xcode: support Xcode 15.1
This commit is contained in:
Bo Anderson 2023-12-23 16:46:18 +00:00 committed by GitHub
commit afe453da28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,10 +17,9 @@ module OS
# This may be a beta version for a beta macOS.
sig { params(macos: MacOSVersion).returns(String) }
def self.latest_version(macos: MacOS.version)
latest_stable = "14.3"
latest_stable = "15.1"
case macos
when "14" then "15.0"
when "13" then latest_stable
when "14", "13" then latest_stable
when "12" then "14.2"
when "11" then "13.2.1"
when "10.15" then "12.4"
@ -253,7 +252,7 @@ module OS
when "13.0.0" then "13.2.1"
when "13.1.6" then "13.4.1"
when "14.0.0" then "14.2"
when "15.0.0" then "15.0"
when "15.0.0" then "15.1"
else "14.3"
end
end
@ -349,8 +348,7 @@ module OS
sig { returns(String) }
def self.latest_clang_version
case MacOS.version
when "14" then "1500.0.28.1.1"
when "13" then "1403.0.22.14.1"
when "14", "13" then "1500.1.0.2.5"
when "12" then "1400.0.29.202"
when "11" then "1300.0.29.30"
when "10.15" then "1200.0.32.29"