Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcode: add initial support for Xcode 11.0 #6208

Merged
merged 1 commit into from Jun 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion Library/Homebrew/os/mac.rb
Expand Up @@ -37,7 +37,7 @@ def full_version=(version)

def latest_sdk_version
# TODO: bump version when new Xcode macOS SDK is released
Version.new "10.14"
Version.new "10.15"
end

def latest_stable_version
Expand Down Expand Up @@ -208,6 +208,7 @@ def preferred_arch
"10.1" => { clang: "10.0", clang_build: 1000 },
"10.2" => { clang: "10.0", clang_build: 1001 },
"10.2.1" => { clang: "10.0", clang_build: 1001 },
"11.0" => { clang: "11.0", clang_build: 1100 },
}.freeze

def compilers_standard?
Expand Down
9 changes: 7 additions & 2 deletions Library/Homebrew/os/mac/xcode.rb
Expand Up @@ -17,16 +17,18 @@ def latest_version
when "10.12" then "9.2"
when "10.13" then "10.1"
when "10.14" then "10.2.1"
when "10.15" then "11.0"
else
raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease?

# Default to newest known version of Xcode for unreleased macOS versions.
"10.2.1"
"11.0"
end
end

def minimum_version
case MacOS.version
when "10.15" then "11.0"
when "10.14" then "10.2"
when "10.13" then "9.0"
when "10.12" then "8.0"
Expand Down Expand Up @@ -174,7 +176,8 @@ def detect_version_from_clang_version
when 90 then "9.2"
when 91 then "9.4"
when 100 then "10.2.1"
else "10.2.1"
when 110 then "11.0"
else "11.0"
end
end

Expand Down Expand Up @@ -242,6 +245,7 @@ def latest_version
# 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.15" then "1100.0.20.17"
when "10.14" then "1001.0.46.4"
when "10.13" then "1000.10.44.2"
when "10.12" then "900.0.39.2"
Expand All @@ -253,6 +257,7 @@ def latest_version

def minimum_version
case MacOS.version
when "10.15" then "11.0.0"
when "10.14" then "10.0.0"
when "10.13" then "9.0.0"
when "10.12" then "8.0.0"
Expand Down