From 757b73e9a96c4ac1f3ccbb578a0b5248457f4e34 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 24 Aug 2012 23:47:51 -0500 Subject: Ask the user for help if MacOS.compilers_standard? fails Signed-off-by: Jack Nagel --- Library/Homebrew/macos.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index 933070c9f..191d7596b 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -197,10 +197,18 @@ module MacOS extend self def compilers_standard? xcode = Xcode.version - # Assume compilers are okay if Xcode version not in hash - return true unless StandardCompilers.keys.include? xcode - StandardCompilers[xcode].all? {|k,v| MacOS.send(k) == v} + unless StandardCompilers.keys.include? xcode + onoe <<-EOS.undent + Homebrew doesn't know what compiler versions ship with your version of + Xcode. Please file an issue with the output of `brew --config`: + https://github.com/mxcl/homebrew/issues + + Thanks! + EOS + end + + StandardCompilers[xcode].all? { |method, build| MacOS.send(method) == build } end def app_with_bundle_id id -- cgit v1.2.3