Fix PrgEnv detection (#34845)

* Fix PrgEnv detection for Cray compiler link paths
This commit is contained in:
QuellynSnead 2023-01-06 11:11:43 -07:00 committed by GitHub
parent c05827e794
commit ea970c8ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ def __init__(self, *args, **kwargs):
@property
def link_paths(self):
if self.PrgEnv in self.modules:
if any(self.PrgEnv in m for m in self.modules):
# Old module-based interface to cray compilers
return {
"cc": os.path.join("cce", "cc"),