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:
parent
8816cdea9e
commit
32cecf55ee
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user