From d9edeb2df9e0634bb924002f2e7b1bd04329da55 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 22 Aug 2024 17:42:46 -0400 Subject: [PATCH] compilers: drop support for GCC 4.9, 5 and 6 --- Library/Homebrew/compilers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 33c1f3aad80f75..7097260fe47bc2 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module CompilerConstants - GNU_GCC_VERSIONS = %w[4.9 5 6 7 8 9 10 11 12 13 14].freeze - GNU_GCC_REGEXP = /^gcc-(4\.9|[5-9]|10|11|12|13|14)$/ + GNU_GCC_VERSIONS = %w[7 8 9 10 11 12 13 14].freeze + GNU_GCC_REGEXP = /^gcc-(#{GNU_GCC_VERSIONS.join("|")})$/ COMPILER_SYMBOL_MAP = { "gcc" => :gcc, "clang" => :clang,