aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2011-09-01 10:29:31 +0100
committerMax Howell2011-09-01 10:29:31 +0100
commita27eda9df21ec4fa8950ab5247ba8b0f21e1eb33 (patch)
treed7dea4087824a34b13bc2fa5172f4b7dd12ce3fd
parent00cd7a3a9b3fc8748f1b4f8762ab08f61f87f4c2 (diff)
downloadbrew-a27eda9df21ec4fa8950ab5247ba8b0f21e1eb33.tar.bz2
Allow fails_with_llvm {}
And fix node and ruby to use LLVM without complaint with Xcode 4.1 and Lion.
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7033a1e51..ca7885983 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