From 2a4ca34a618774e987ca35fe2c8c2460174ea392 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 1 Jun 2020 22:59:14 +0200 Subject: 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. --- lib/spack/spack/compilers/gcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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', -- cgit v1.2.3-60-g2f50