aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index 4cb8666a4..9657073dc 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -85,6 +85,13 @@ module OS
if File.file? path
Utils.popen_read(path, "-version") =~ /Xcode (\d(\.\d)*)/
return $1 if $1
+
+ # Xcode 2.x's xcodebuild has a different version string
+ Utils.popen_read(path, "-version") =~ /DevToolsCore-(\d+\.\d)/
+ case $1
+ when "515.0" then return "2.0"
+ when "798.0" then return "2.5"
+ end
end
end