summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>2022-03-14 16:33:56 +0100
committerGitHub <noreply@github.com>2022-03-14 16:33:56 +0100
commitf1bdbefd465a3691bb1f08761ba4ac925e10efce (patch)
treefe84cb1603c41649f83811f71a51b6574e45550b /lib
parentf14840fcf2be4cf74213930f7ebbafdc9e796583 (diff)
downloadspack-f1bdbefd465a3691bb1f08761ba4ac925e10efce.tar.gz
spack-f1bdbefd465a3691bb1f08761ba4ac925e10efce.tar.bz2
spack-f1bdbefd465a3691bb1f08761ba4ac925e10efce.tar.xz
spack-f1bdbefd465a3691bb1f08761ba4ac925e10efce.zip
mpich: fix the detection of the package (#29284)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/gcc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/gcc.py b/lib/spack/spack/compilers/gcc.py
index 4c49c0d636..abbce721e8 100644
--- a/lib/spack/spack/compilers/gcc.py
+++ b/lib/spack/spack/compilers/gcc.py
@@ -23,10 +23,10 @@ class Gcc(spack.compiler.Compiler):
# Subclasses use possible names of Fortran 90 compiler
fc_names = ['gfortran']
- # MacPorts builds gcc versions with prefixes and -mp-X.Y suffixes.
+ # MacPorts builds gcc versions with prefixes and -mp-X or -mp-X.Y suffixes.
# Homebrew and Linuxbrew may build gcc with -X, -X.Y suffixes.
# Old compatibility versions may contain XY suffixes.
- suffixes = [r'-mp-\d+\.\d+', r'-\d+\.\d+', r'-\d+', r'\d\d']
+ suffixes = [r'-mp-\d+(?:\.\d+)?', r'-\d+(?:\.\d+)?', r'\d\d']
# Named wrapper links within build_env_path
link_paths = {'cc': 'gcc/gcc',