diff options
author | Mario Melara <maamelara@gmail.com> | 2016-02-16 15:17:57 -0800 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-02-16 15:17:57 -0800 |
commit | 35a602baaf39fb5056f3dbb7eccbd638e126159f (patch) | |
tree | ff6df63f6db9f3f7e43c16c35471a0e1396a1b29 /lib | |
parent | c7993010116e02426c73dc32d8cfb74b8d542868 (diff) | |
download | spack-35a602baaf39fb5056f3dbb7eccbd638e126159f.tar.gz spack-35a602baaf39fb5056f3dbb7eccbd638e126159f.tar.bz2 spack-35a602baaf39fb5056f3dbb7eccbd638e126159f.tar.xz spack-35a602baaf39fb5056f3dbb7eccbd638e126159f.zip |
Changed target checking to architecture checking for abi compatible
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/abi.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/spack/spack/abi.py b/lib/spack/spack/abi.py index 1dd49d6b2c..0f07feda5f 100644 --- a/lib/spack/spack/abi.py +++ b/lib/spack/spack/abi.py @@ -34,9 +34,10 @@ class ABI(object): """This class provides methods to test ABI compatibility between specs. The current implementation is rather rough and could be improved.""" - def target_compatible(self, parent, child): + def architecture_compatible(self, parent, child): """Returns true iff the parent and child specs have ABI compatible targets.""" - return not parent.target or not child.target or parent.target == child.target + return not parent.architecture or not \ + child.achitecture or parent.architecture == child.architecture @memoized @@ -123,6 +124,6 @@ class ABI(object): def compatible(self, parent, child, **kwargs): """Returns true iff a parent and child spec are ABI compatible""" loosematch = kwargs.get('loose', False) - return self.target_compatible(parent, child) and \ + return self.architecture_compatible(parent, child) and \ self.compiler_compatible(parent, child, loose=loosematch) |