diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-06-01 22:59:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 13:59:14 -0700 |
commit | 2a4ca34a618774e987ca35fe2c8c2460174ea392 (patch) | |
tree | d0989da1d94005346648c4e4b1b5871ab534f931 | |
parent | 9741de504f018a3ea37117a5c1fe1b3019de6899 (diff) | |
download | spack-2a4ca34a618774e987ca35fe2c8c2460174ea392.tar.gz spack-2a4ca34a618774e987ca35fe2c8c2460174ea392.tar.bz2 spack-2a4ca34a618774e987ca35fe2c8c2460174ea392.tar.xz spack-2a4ca34a618774e987ca35fe2c8c2460174ea392.zip |
Recognize system installed gcc-10 as compilers (#16884)
Now that the version number of GCC reached double digits, an update
to the regex is needed to recognize gcc-10 as an executable to be
inspected when searching for compilers.
-rw-r--r-- | lib/spack/spack/compilers/gcc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/compilers/gcc.py b/lib/spack/spack/compilers/gcc.py index 7cbf3e4fa8..98809eea25 100644 --- a/lib/spack/spack/compilers/gcc.py +++ b/lib/spack/spack/compilers/gcc.py @@ -27,7 +27,7 @@ class Gcc(Compiler): # MacPorts builds gcc versions with prefixes and -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+', r'\d\d'] # Named wrapper links within build_env_path link_paths = {'cc': 'gcc/gcc', |