diff options
| author | Mike McQuaid | 2016-12-13 02:10:11 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2016-12-13 02:10:11 +0000 | 
| commit | cf1fa0c5bc5bf80d21921e5187581de1a7baa08b (patch) | |
| tree | f9a8d5f84009d4e75f8d875ae4f8770f50f2dc56 | |
| parent | 666463ca2be08261cf103e4870b267f5b461a7f3 (diff) | |
| download | brew-cf1fa0c5bc5bf80d21921e5187581de1a7baa08b.tar.bz2 | |
audit: flag use of "fails_with :llvm".
Also, add TODOs for deprecating this properly at a later point.
| -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 | 
