diff options
| author | Mike McQuaid | 2016-12-18 11:17:44 -0800 |
|---|---|---|
| committer | GitHub | 2016-12-18 11:17:44 -0800 |
| commit | e95c843c2e90eec35a1d8566c500aa4a91c3d3b3 (patch) | |
| tree | af94facb11c29b3efb28e8bb596e450b72cfb8ac | |
| parent | b87d27f939c6ed6d93bd80dc78240e25eb65ed49 (diff) | |
| parent | cf1fa0c5bc5bf80d21921e5187581de1a7baa08b (diff) | |
| download | brew-e95c843c2e90eec35a1d8566c500aa4a91c3d3b3.tar.bz2 | |
Merge pull request #1673 from MikeMcQuaid/audit-fails-with-llvm
audit: flag use of "fails_with :llvm".
| -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 c80cd517f..b3927d260 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 |
