diff options
author | QuellynSnead <quellyn@lanl.gov> | 2023-01-06 11:11:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 18:11:43 +0000 |
commit | ea970c8ab8b90444fd3f3f10045f3d1089e23701 (patch) | |
tree | 5e4edcae1f43ba78722bddcfe808ec519773c777 /lib | |
parent | c05827e7942afe2a8ababab239a87dd763eb491a (diff) | |
download | spack-ea970c8ab8b90444fd3f3f10045f3d1089e23701.tar.gz spack-ea970c8ab8b90444fd3f3f10045f3d1089e23701.tar.bz2 spack-ea970c8ab8b90444fd3f3f10045f3d1089e23701.tar.xz spack-ea970c8ab8b90444fd3f3f10045f3d1089e23701.zip |
Fix PrgEnv detection (#34845)
* Fix PrgEnv detection for Cray compiler link paths
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compilers/cce.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/compilers/cce.py b/lib/spack/spack/compilers/cce.py index 3ecbcdc3d6..bb51266079 100644 --- a/lib/spack/spack/compilers/cce.py +++ b/lib/spack/spack/compilers/cce.py @@ -39,7 +39,7 @@ class Cce(Compiler): @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"), |