Allow fails_with_llvm {}

And fix node and ruby to use LLVM without complaint with Xcode 4.1 and Lion.
This commit is contained in:
Max Howell 2011-09-01 10:29:31 +01:00
parent 00cd7a3a9b
commit a27eda9df2

View File

@ -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