From b0f51ac744e411d2d82c5f48577c5f2cbbc7b5f0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 17 Oct 2014 19:36:25 +0100 Subject: [PATCH] xcode: check clang exists to confim install. --- Library/Homebrew/os/mac/xcode.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index f24d36e6f9..30c141cd65 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