aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/fails_with_llvm.rb
blob: 2c7df721d59d139713c440771c40c76ee972c274 (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