From 4bca7f0cba9b7dc5f22ced1c04cc2c392ee22b69 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sat, 9 May 2020 11:06:02 +0100 Subject: [PATCH] compilers: support GCC 10 as a formula --- Library/Homebrew/compilers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 7f95f25b83..25a9a42147 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -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