aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac/xcode.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-22 21:26:04 +0100
committerGitHub2016-09-22 21:26:04 +0100
commit889c400be4ba7803b7dcf402b00279a21ae80c97 (patch)
tree45bd152a8f895f2d18652c03ca7dbce593f643af /Library/Homebrew/os/mac/xcode.rb
parentbbed7246bc5c5b7acb8c1d427d10b43e090dfd39 (diff)
parenta124680b189f50ebeb550845e3c0efd34db66247 (diff)
downloadbrew-889c400be4ba7803b7dcf402b00279a21ae80c97.tar.bz2
Merge pull request #956 from DomT4/oh_no_not_this_time_of_year_again
Xcode 8.0 changes.
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index f487a6997..3aab9bf52 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -15,7 +15,7 @@ module OS
when "10.8" then "5.1.1"
when "10.9" then "6.2"
when "10.10" then "7.2.1"
- when "10.11" then "7.3.1"
+ when "10.11" then "8.0"
when "10.12" then "8.0"
else
# Default to newest known version of Xcode for unreleased macOS versions.
@@ -193,6 +193,9 @@ module OS
end
def latest_version
+ # As of Xcode 8 CLT releases are no longer in sync with Xcode releases
+ # 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.12" then "800.0.38"
when "10.11" then "703.0.31"
@@ -206,9 +209,9 @@ module OS
def outdated?
if MacOS.version >= :mavericks
- version = `#{MAVERICKS_PKG_PATH}/usr/bin/clang --version`
+ version = Utils.popen_read("#{MAVERICKS_PKG_PATH}/usr/bin/clang --version")
else
- version = `/usr/bin/clang --version`
+ version = Utils.popen_read("/usr/bin/clang --version")
end
version = version[/clang-(\d+\.\d+\.\d+(\.\d+)?)/, 1] || "0"
version < latest_version