Merge pull request #1673 from MikeMcQuaid/audit-fails-with-llvm
audit: flag use of "fails_with :llvm".
This commit is contained in:
commit
e95c843c2e
@ -1000,6 +1000,10 @@ class FormulaAuditor
|
||||
problem "Use Language::Node for npm install args"
|
||||
end
|
||||
|
||||
if line.include?("fails_with :llvm")
|
||||
problem "'fails_with :llvm' is now a no-op so should be removed"
|
||||
end
|
||||
|
||||
return unless @strict
|
||||
|
||||
if line =~ /system ((["'])[^"' ]*(?:\s[^"' ]*)+\2)/
|
||||
|
||||
@ -2340,6 +2340,8 @@ class Formula
|
||||
# version '4.8.1'
|
||||
# end</pre>
|
||||
def fails_with(compiler, &block)
|
||||
# TODO: deprecate this in future.
|
||||
# odeprecated "fails_with :llvm" if compiler == :llvm
|
||||
specs.each { |spec| spec.fails_with(compiler, &block) }
|
||||
end
|
||||
|
||||
|
||||
@ -173,6 +173,8 @@ class SoftwareSpec
|
||||
end
|
||||
|
||||
def fails_with(compiler, &block)
|
||||
# TODO: deprecate this in future.
|
||||
# odeprecated "fails_with :llvm" if compiler == :llvm
|
||||
compiler_failures << CompilerFailure.create(compiler, &block)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user