Merge pull request #2412 from EricFromCanada/master

Xcode: update supported versions & download URLs for 8.3
This commit is contained in:
Mike McQuaid 2017-04-02 17:49:12 +01:00 committed by GitHub
commit 8ea778f7c7
7 changed files with 29 additions and 14 deletions

View File

@ -31,13 +31,13 @@ class DevelopmentTools
elsif MacOS.version == "10.8" || MacOS.version == "10.7" elsif MacOS.version == "10.8" || MacOS.version == "10.7"
<<-EOS.undent <<-EOS.undent
Install the Command Line Tools from Install the Command Line Tools from
https://developer.apple.com/downloads/ https://developer.apple.com/download/more/
or via Xcode's preferences. or via Xcode's preferences.
EOS EOS
else else
<<-EOS.undent <<-EOS.undent
Install Xcode from Install Xcode from
https://developer.apple.com/xcode/downloads/ https://developer.apple.com/download/more/
EOS EOS
end end
end end

View File

@ -81,6 +81,12 @@ module Homebrew
return unless MacOS::CLT.installed? return unless MacOS::CLT.installed?
return unless MacOS::CLT.outdated? return unless MacOS::CLT.outdated?
# Travis CI images are going to end up outdated so don't complain when
# `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew
# repository. This only needs to support whatever CI provider
# Homebrew/brew is currently using.
return if ENV["TRAVIS"]
<<-EOS.undent <<-EOS.undent
A newer Command Line Tools release is available. A newer Command Line Tools release is available.
#{MacOS::CLT.update_instructions} #{MacOS::CLT.update_instructions}

View File

@ -10,7 +10,7 @@ module Homebrew
EOS EOS
else else
<<-EOS.undent <<-EOS.undent
Xcode can be installed from #{Formatter.url("https://developer.apple.com/xcode/downloads/")}. Xcode can be installed from #{Formatter.url("https://developer.apple.com/download/more/")}.
EOS EOS
end end
else else

View File

@ -201,6 +201,10 @@ module OS
"7.3" => { clang: "7.3", clang_build: 703 }, "7.3" => { clang: "7.3", clang_build: 703 },
"7.3.1" => { clang: "7.3", clang_build: 703 }, "7.3.1" => { clang: "7.3", clang_build: 703 },
"8.0" => { clang: "8.0", clang_build: 800 }, "8.0" => { clang: "8.0", clang_build: 800 },
"8.1" => { clang: "8.0", clang_build: 800 },
"8.2" => { clang: "8.0", clang_build: 800 },
"8.2.1" => { clang: "8.0", clang_build: 800 },
"8.3" => { clang: "8.1", clang_build: 802 },
}.freeze }.freeze
def compilers_standard? def compilers_standard?

View File

@ -16,13 +16,13 @@ module OS
when "10.8" then "5.1.1" when "10.8" then "5.1.1"
when "10.9" then "6.2" when "10.9" then "6.2"
when "10.10" then "7.2.1" when "10.10" then "7.2.1"
when "10.11" then "8.2" when "10.11" then "8.2.1"
when "10.12" then "8.2" when "10.12" then "8.3"
else else
raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease? raise "macOS '#{MacOS.version}' is invalid" unless OS::Mac.prerelease?
# Default to newest known version of Xcode for unreleased macOS versions. # Default to newest known version of Xcode for unreleased macOS versions.
"8.2" "8.3"
end end
end end
@ -90,7 +90,7 @@ module OS
else else
<<-EOS.undent <<-EOS.undent
Xcode can be updated from Xcode can be updated from
https://developer.apple.com/xcode/downloads/ https://developer.apple.com/download/more/
EOS EOS
end end
end end
@ -152,7 +152,8 @@ module OS
when 70 then "7.0" when 70 then "7.0"
when 73 then "7.3" when 73 then "7.3"
when 80 then "8.0" when 80 then "8.0"
else "8.0" when 81 then "8.3"
else "8.3"
end end
end end
@ -202,7 +203,7 @@ module OS
elsif MacOS.version == "10.8" || MacOS.version == "10.7" elsif MacOS.version == "10.8" || MacOS.version == "10.7"
<<-EOS.undent <<-EOS.undent
The standalone package can be obtained from The standalone package can be obtained from
https://developer.apple.com/downloads https://developer.apple.com/download/more/
or it can be installed via Xcode's preferences. or it can be installed via Xcode's preferences.
EOS EOS
end end
@ -213,8 +214,8 @@ module OS
# on the older supported platform for that Xcode release, i.e there's no # 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. # CLT package for 10.11 that contains the Clang version from Xcode 8.
case MacOS.version case MacOS.version
when "10.12" then "800.0.42.1" when "10.12" then "802.0.38"
when "10.11" then "703.0.31" when "10.11" then "800.0.42.1"
when "10.10" then "700.1.81" when "10.10" then "700.1.81"
when "10.9" then "600.0.57" when "10.9" then "600.0.57"
when "10.8" then "503.0.40" when "10.8" then "503.0.40"

View File

@ -43,7 +43,7 @@ class XcodeRequirement < Requirement
EOS EOS
else else
message + <<-EOS.undent message + <<-EOS.undent
Xcode can be installed from #{Formatter.url("https://developer.apple.com/xcode/downloads/")} Xcode can be installed from #{Formatter.url("https://developer.apple.com/download/more/")}.
EOS EOS
end end
end end

View File

@ -11,8 +11,8 @@ Tools available for your platform:
| 10.8 | 5.1.1 | April 2014 | | 10.8 | 5.1.1 | April 2014 |
| 10.9 | 6.2 | 6.2 | | 10.9 | 6.2 | 6.2 |
| 10.10 | 7.2.1 | 7.2 | | 10.10 | 7.2.1 | 7.2 |
| 10.11 | 8.0 | 7.3 | | 10.11 | 8.2.1 | 8.2 |
| 10.12 | 8.0 | 8.0 | | 10.12 | 8.3 | 8.3 |
## Compiler version database ## Compiler version database
@ -66,6 +66,10 @@ Tools available for your platform:
| 7.3 | — | — | — | — | 7.3 (703.0.29) | — | | 7.3 | — | — | — | — | 7.3 (703.0.29) | — |
| 7.3.1 | — | — | — | — | 7.3 (703.0.31) | — | | 7.3.1 | — | — | — | — | 7.3 (703.0.31) | — |
| 8.0 | — | — | — | — | 8.0 (800.0.38) | — | | 8.0 | — | — | — | — | 8.0 (800.0.38) | — |
| 8.1 | — | — | — | — | 8.0 (800.0.42.1)| — |
| 8.2 | — | — | — | — | 8.0 (800.0.42.1)| — |
| 8.2.1 | — | — | — | — | 8.0 (800.0.42.1)| — |
| 8.3 | — | — | — | — | 8.1 (802.0.38) | — |
## References to Xcode and compiler versions in code ## References to Xcode and compiler versions in code
When a new Xcode release is made, the following things need to be When a new Xcode release is made, the following things need to be