diff options
author | Gregory Becker <becker33@llnl.gov> | 2016-03-02 10:14:50 -0800 |
---|---|---|
committer | Gregory Becker <becker33@llnl.gov> | 2016-03-02 10:14:50 -0800 |
commit | 615ea969f8a998417dfbbd07935848eb37f71c47 (patch) | |
tree | 41e58634be870391420483e5b4c730fea961f0eb | |
parent | 4601c36f572ed7cf66f539c11ebe0835976655dc (diff) | |
download | spack-615ea969f8a998417dfbbd07935848eb37f71c47.tar.gz spack-615ea969f8a998417dfbbd07935848eb37f71c47.tar.bz2 spack-615ea969f8a998417dfbbd07935848eb37f71c47.tar.xz spack-615ea969f8a998417dfbbd07935848eb37f71c47.zip |
made arch instantiate as a tuple
-rw-r--r-- | lib/spack/spack/spec.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 0a55ec5d76..57dd0c2181 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -461,7 +461,13 @@ class Spec(object): """Called by the parser to set the architecture.""" if self.architecture: raise DuplicateArchitectureError( "Spec for '%s' cannot have two architectures." % self.name) - self.architecture = architecture # a string can be set + platform = spack.architecture.sys_type() + if '-' in architecture: + os, target = architecture.split('-') + else: + os = architecture + target = None + self.architecture = spack.architecture.Arch(platform, os, target) def _add_dependency(self, spec): |