aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/fails_with_llvm.rb
blob: 2222a33e643b72a1ad4c55b0872c7cbbaae0cf9d (plain)
1
2
3
4
5
6
7
8
9
10
11
class Formula
  def fails_with_llvm msg=nil, data=nil
    opoo "Calling fails_with_llvm in the install method is deprecated"
    puts "Use the fails_with DSL instead"
  end

  def self.fails_with_llvm msg=nil, data={}
    data = msg if Hash === msg
    fails_with(:llvm) { build(data.delete(:build).to_i) }
  end
end