Compare commits

...

1 Commits

Author SHA1 Message Date
Gregory Becker 1a701eb6ac abi.py: update _intel_compiler_compare for v0.20 2023-06-06 17:49:04 -07:00
1 changed files with 3 additions and 3 deletions

View File

@ -82,9 +82,9 @@ class ABI(object):
are ABI compatible"""
# Test major and minor versions. Ignore build version.
if len(pversion.version) < 2 or len(cversion.version) < 2:
return False
return pversion.version[:2] == cversion.version[:2]
pv = pversion.lo
cv = cversion.lo
return pv.up_to(2) == cv.up_to(2)
def compiler_compatible(self, parent, child, **kwargs):
"""Return true if compilers for parent and child are ABI compatible."""