diff options
author | Hao Lyu <20434183+IncubatorShokuhou@users.noreply.github.com> | 2021-10-27 05:12:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 14:12:58 -0700 |
commit | 02bea6d2d254921f47291669454280f0dd87db70 (patch) | |
tree | 5ba1839003787c9fbf9b237bc4181485419dd2f8 /var | |
parent | 9a637bbd0980efa657762d0d4dc524942ac096b5 (diff) | |
download | spack-02bea6d2d254921f47291669454280f0dd87db70.tar.gz spack-02bea6d2d254921f47291669454280f0dd87db70.tar.bz2 spack-02bea6d2d254921f47291669454280f0dd87db70.tar.xz spack-02bea6d2d254921f47291669454280f0dd87db70.zip |
fix bug when there is version id in the path of compiler (#26916)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/wrf/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/wrf/package.py b/var/spack/repos/builtin/packages/wrf/package.py index 609dadde12..69a5a7fb60 100644 --- a/var/spack/repos/builtin/packages/wrf/package.py +++ b/var/spack/repos/builtin/packages/wrf/package.py @@ -197,8 +197,8 @@ class Wrf(Package): if "Please select from among the following" in outputbuf: options = collect_platform_options(outputbuf) comp_pair = "%s/%s" % ( - basename(self.compiler.fc), - basename(self.compiler.cc), + basename(self.compiler.fc).split("-")[0], + basename(self.compiler.cc).split("-")[0], ) compiler_matches = dict( (x, y) for x, y in options.items() if comp_pair in x.lower() |