diff options
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 5353c65d4..9471f58b5 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -296,6 +296,17 @@ class Formula self.class.external_deps end + def fails_with_llvm msg="", data=nil + return unless (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm') + + build = data.delete :build rescue nil + msg = "(No specific reason was given)" if msg.empty? + + opoo "LLVM was requested, but this formula is reported as not working with LLVM:" + puts msg + puts "Tested with LLVM build #{build}" unless build == nil + end + protected # Pretty titles the command and buffers stdout/stderr # Throws if there's an error |
