aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-10-17 19:36:25 +0100
committerMike McQuaid2014-10-17 19:36:47 +0100
commitb0f51ac744e411d2d82c5f48577c5f2cbbc7b5f0 (patch)
tree7631b68a3070edccf9980b1268b16e968257e5c9 /Library
parentf840c592f0e61754a473a9d1faca91555f780496 (diff)
downloadbrew-b0f51ac744e411d2d82c5f48577c5f2cbbc7b5f0.tar.bz2
xcode: check clang exists to confim install.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index f24d36e6f..30c141cd6 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -187,6 +187,9 @@ module OS
def detect_version
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
+ if MacOS.version >= :mavericks
+ next unless File.exist?("#{MAVERICKS_PKG_PATH}/usr/bin/clang")
+ end
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]
return version if version
end