Changed architecture parser so that if user just enters in frontend or backend, then both the os and target will take those names. In the concretize method the frontend target/os and backend target/os will be picked to match each other
This commit is contained in:
		| @@ -462,11 +462,10 @@ def _set_architecture(self, architecture): | ||||
|         """Called by the parser to set the architecture.""" | ||||
|         if self.architecture: raise DuplicateArchitectureError( | ||||
|                 "Spec for '%s' cannot have two architectures." % self.name) | ||||
|         platform = spack.architecture.sys_type() | ||||
|         if '-' in architecture: | ||||
|             os, target = architecture.split('-') | ||||
|         else: | ||||
|             os = None | ||||
|         elif architecture == 'frontend' or architecture == 'backend': | ||||
|             os = architecture | ||||
|             target = architecture | ||||
|         self.architecture = spack.architecture.Arch(os, target) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mario Melara
					Mario Melara