Skip to content

Commit

Permalink
Merge pull request #16389 from Bo98/xcode-15.1
Browse files Browse the repository at this point in the history
os/mac/xcode: support Xcode 15.1
  • Loading branch information
Bo98 authored Dec 23, 2023
2 parents 338d626 + 61a7301 commit afe453d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Library/Homebrew/os/mac/xcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ module Xcode
# 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"
Expand Down Expand Up @@ -253,7 +252,7 @@ def self.detect_version_from_clang_version
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
Expand Down Expand Up @@ -349,8 +348,7 @@ def self.update_instructions
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"
Expand Down

0 comments on commit afe453d

Please sign in to comment.