Skip to content
Snippets Groups Projects
Unverified Commit 2a4ca34a authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by GitHub
Browse files

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.
parent 9741de50
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ class Gcc(Compiler): ...@@ -27,7 +27,7 @@ class Gcc(Compiler):
# MacPorts builds gcc versions with prefixes and -mp-X.Y suffixes. # MacPorts builds gcc versions with prefixes and -mp-X.Y suffixes.
# Homebrew and Linuxbrew may build gcc with -X, -X.Y suffixes. # Homebrew and Linuxbrew may build gcc with -X, -X.Y suffixes.
# Old compatibility versions may contain XY 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 # Named wrapper links within build_env_path
link_paths = {'cc': 'gcc/gcc', link_paths = {'cc': 'gcc/gcc',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment