diff options
| author | Jack Nagel | 2014-08-02 20:09:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-02 20:11:04 -0500 |
| commit | 5b38e891073fa324a09d31178c789b2453da54bf (patch) | |
| tree | d3e1ea55b7e909402010682bbf0b265de8e282f5 /Library/Homebrew/cxxstdlib.rb | |
| parent | fccfddb5105b82df35ea4296c4bb5b1d95b57651 (diff) | |
| download | brew-5b38e891073fa324a09d31178c789b2453da54bf.tar.bz2 | |
Simplify compatibility logic
Diffstat (limited to 'Library/Homebrew/cxxstdlib.rb')
| -rw-r--r-- | Library/Homebrew/cxxstdlib.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index 34ce92d99..3326ebac0 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -27,14 +27,8 @@ class CxxStdlib return false unless type == other.type - if apple_compiler? - return false unless other.apple_compiler? - else - return false if other.apple_compiler? - return false unless compiler.to_s[4..6] == other.compiler.to_s[4..6] - end - - true + apple_compiler? && other.apple_compiler? || + !other.apple_compiler? && compiler.to_s[4..6] == other.compiler.to_s[4..6] end def check_dependencies(formula, deps) |
