Fix target for compiler on CNL operating systems (#2580)

Changes any to a string to avoid <built-in function any> being
incorrectly added to target in compilers.yaml.
This commit is contained in:
Mario Melara 2016-12-14 14:37:14 -08:00 committed by becker33
parent 8816cdea9e
commit 32cecf55ee
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ def __init__(self, cspec, operating_system, target,
extra_rpaths=None, **kwargs):
self.spec = cspec
self.operating_system = str(operating_system)
self.target = str(target)
self.target = target
self.modules = modules
self.alias = alias

View File

@ -58,7 +58,7 @@ def find_compiler(self, cmp_cls, *paths):
v = version
comp = cmp_cls(
spack.spec.CompilerSpec(name + '@' + v),
self, any,
self, "any",
['cc', 'CC', 'ftn'], [cmp_cls.PrgEnv, name + '/' + v])
compilers.append(comp)