aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMike McQuaid2017-04-22 17:47:39 +0100
committerGitHub2017-04-22 17:47:39 +0100
commita937ed0a20eed46ceaa55ea1ad5234a63a19232d (patch)
tree1abf93d4295c7cca42a5d0cdb64ce8ab764b9ed1 /Library/Homebrew/os
parent114e8c55378a28d8ab285132ee28fb6464606962 (diff)
parentba3c46d24fe6423845cc5e827eb94b3427d75a10 (diff)
downloadbrew-a937ed0a20eed46ceaa55ea1ad5234a63a19232d.tar.bz2
Merge pull request #2522 from MikeMcQuaid/more-deprecations
More deprecations.
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index 8934697cb..cac0dcc30 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -128,11 +128,10 @@ module OS
end
end
- # The remaining logic provides a fake Xcode version for CLT-only
- # systems. This behavior only exists because Homebrew used to assume
- # Xcode.version would always be non-nil. This is deprecated, and will
- # be removed in a future version. To remain compatible, guard usage of
- # Xcode.version with an Xcode.installed? check.
+ # The remaining logic provides a fake Xcode version based on the
+ # installed CLT version. This is useful as they are packaged
+ # simultaneously so workarounds need to apply to both based on their
+ # comparable version.
case (DevelopmentTools.clang_version.to_f * 10).to_i
when 0 then "dunno"
when 1..14 then "3.2.2"