Merge pull request #7528 from Bo98/gcc-10-formula

compilers: support GCC 10 as a formula
This commit is contained in:
FX Coudert 2020-05-09 12:26:56 +02:00 committed by GitHub
commit 9023667f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ class CompilerSelector
def gnu_gcc_versions
# prioritize gcc version provided by gcc formula.
v = Formulary.factory("gcc").version.to_s.slice(/\d/)
v = Formulary.factory("gcc").version.to_s.slice(/\d+/)
GNU_GCC_VERSIONS - [v] + [v] # move the version to the end of the list
rescue FormulaUnavailableError
GNU_GCC_VERSIONS