From a27eda9df21ec4fa8950ab5247ba8b0f21e1eb33 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 1 Sep 2011 10:29:31 +0100 Subject: [PATCH] Allow fails_with_llvm {} And fix node and ruby to use LLVM without complaint with Xcode 4.1 and Lion. --- Library/Homebrew/formula.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 7033a1e519..ca7885983f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -76,7 +76,12 @@ class FailsWithLLVM attr_reader :msg, :data, :build def initialize msg=nil, data=nil - @msg = msg || "(No specific reason was given)" + if msg.nil? or msg.kind_of? Hash + @msg = "(No specific reason was given)" + data = msg + else + @msg = msg + end @data = data @build = data.delete :build rescue nil end