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
Branches
Tags
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment