Simplify compatibility logic
This commit is contained in:
parent
fccfddb510
commit
5b38e89107
@ -27,14 +27,8 @@ class CxxStdlib
|
|||||||
|
|
||||||
return false unless type == other.type
|
return false unless type == other.type
|
||||||
|
|
||||||
if apple_compiler?
|
apple_compiler? && other.apple_compiler? ||
|
||||||
return false unless other.apple_compiler?
|
!other.apple_compiler? && compiler.to_s[4..6] == other.compiler.to_s[4..6]
|
||||||
else
|
|
||||||
return false if other.apple_compiler?
|
|
||||||
return false unless compiler.to_s[4..6] == other.compiler.to_s[4..6]
|
|
||||||
end
|
|
||||||
|
|
||||||
true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_dependencies(formula, deps)
|
def check_dependencies(formula, deps)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user