diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index ee03c01ac..0112c524f 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -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)/ diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index e1846424f..600f9c2e9 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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 diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index de19ce544..0c230f643 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -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 |
