aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorJack Nagel2014-04-15 14:25:27 -0500
committerJack Nagel2014-04-15 14:26:12 -0500
commitee75c3cbaad2083c185322dff3368250ee442033 (patch)
tree21c99067278ec1f8bf6eb322b08b1392bfb7b86d /Library/Homebrew/os
parentf6309d3a8575341635af3303c9a4e39c3e738be8 (diff)
downloadhomebrew-ee75c3cbaad2083c185322dff3368250ee442033.tar.bz2
Update comment
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index d56aa992b..2c215e045 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -88,9 +88,11 @@ module OS
end
end
- # For people who's xcode-select is unset, or who have installed
- # xcode-gcc-installer or whatever other combinations we can try and
- # supprt. See https://github.com/Homebrew/homebrew/wiki/Xcode
+ # 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.
case MacOS.llvm_build_version.to_i
when 1..2063 then "3.1.0"
when 2064..2065 then "3.1.4"