aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2012-08-24 23:47:51 -0500
committerJack Nagel2012-08-26 13:57:23 -0500
commit757b73e9a96c4ac1f3ccbb578a0b5248457f4e34 (patch)
treeae119985d668c210f0581d8c73f54bfa4dd5de15 /Library/Homebrew
parent4d7069ed6f8d9464dee2b658036feacb56a816fe (diff)
downloadbrew-757b73e9a96c4ac1f3ccbb578a0b5248457f4e34.tar.bz2
Ask the user for help if MacOS.compilers_standard? fails
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-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