From df7f28deafb91b1b88d444632dc63f8ee88a23fa Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 17 Oct 2014 19:36:25 +0100 Subject: xcode: check clang exists to confim install. --- Library/Homebrew/os/mac/xcode.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3