diff options
author | Mario Melara <maamelara@gmail.com> | 2016-04-08 12:43:08 -0700 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-04-08 12:43:08 -0700 |
commit | 5bcd1e7ccd9ff6568c06a13998f2d552d1b37b60 (patch) | |
tree | b584191b44f1b9920ab7331138295c095b0ac4bf | |
parent | 618b3f5f2d149fe3c20f90c0890748c8f3589afb (diff) | |
download | spack-5bcd1e7ccd9ff6568c06a13998f2d552d1b37b60.tar.gz spack-5bcd1e7ccd9ff6568c06a13998f2d552d1b37b60.tar.bz2 spack-5bcd1e7ccd9ff6568c06a13998f2d552d1b37b60.tar.xz spack-5bcd1e7ccd9ff6568c06a13998f2d552d1b37b60.zip |
If we already have the name and the platform, then we should probably go ahead and concretize it in the constructor. Else leave it as None and concretize it later.
-rw-r--r-- | lib/spack/spack/architecture.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/spack/spack/architecture.py b/lib/spack/spack/architecture.py index ca306b0484..e2c189980a 100644 --- a/lib/spack/spack/architecture.py +++ b/lib/spack/spack/architecture.py @@ -199,8 +199,13 @@ class Arch(object): def __init__(self, platform_os=None, target=None): self.platform = sys_type() + if platform_os: + platform_os = self.platform.operating_system(platform_os) self.platform_os = platform_os - self.target = target + if target: + target = self.platform.target(target) + self.target = target + @property def concrete(self): |