aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-24 23:47:51 -0500
committerJack Nagel2012-08-26 13:57:23 -0500
commit1be1e61de7c503aa0d35668649f5a1bb38d26af2 (patch)
tree4127118dff67e8371679800ab57064d36ab8812c /Library
parenta8cb83a9b933314b60d792994c55d56b4c64c4f1 (diff)
downloadhomebrew-1be1e61de7c503aa0d35668649f5a1bb38d26af2.tar.bz2
Ask the user for help if MacOS.compilers_standard? fails
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb14
1 files changed, 11 insertions, 3 deletions
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