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
commitdf7f28deafb91b1b88d444632dc63f8ee88a23fa (patch)
tree93fde0c3b296be2aa4d70d99ab6749e6686ade0d /Library
parent09d065dccc386fbc7c56c6cac6c4120459b5da50 (diff)
downloadhomebrew-df7f28deafb91b1b88d444632dc63f8ee88a23fa.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