From 7dac30a105488eb44e0288a5f08bc06f67fef0c3 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 ++-- Library/Homebrew/shims/linux/super/gcc-4.2 | 1 - Library/Homebrew/shims/linux/super/gcc-4.9 | 1 - Library/Homebrew/shims/linux/super/gcc-5 | 1 - Library/Homebrew/shims/linux/super/gcc-6 | 1 - Library/Homebrew/shims/linux/super/llvm-gcc-4.2 | 1 - Library/Homebrew/shims/mac/super/gcc-4.2 | 1 - Library/Homebrew/shims/mac/super/gcc-4.9 | 1 - Library/Homebrew/shims/mac/super/gcc-5 | 1 - Library/Homebrew/shims/mac/super/gcc-6 | 1 - .../Homebrew/shims/mac/super/i686-apple-darwin11-llvm-gcc-4.2 | 1 - Library/Homebrew/shims/mac/super/llvm-gcc-4.2 | 1 - Library/Homebrew/shims/super/gcc-4.9 | 1 - Library/Homebrew/shims/super/gcc-5 | 1 - Library/Homebrew/shims/super/gcc-6 | 1 - Library/Homebrew/shims/super/i686-apple-darwin11-llvm-gcc-4.2 | 1 - Library/Homebrew/shims/super/llvm-gcc-4.2 | 1 - 17 files changed, 2 insertions(+), 18 deletions(-) delete mode 120000 Library/Homebrew/shims/linux/super/gcc-4.2 delete mode 120000 Library/Homebrew/shims/linux/super/gcc-4.9 delete mode 120000 Library/Homebrew/shims/linux/super/gcc-5 delete mode 120000 Library/Homebrew/shims/linux/super/gcc-6 delete mode 120000 Library/Homebrew/shims/linux/super/llvm-gcc-4.2 delete mode 120000 Library/Homebrew/shims/mac/super/gcc-4.2 delete mode 120000 Library/Homebrew/shims/mac/super/gcc-4.9 delete mode 120000 Library/Homebrew/shims/mac/super/gcc-5 delete mode 120000 Library/Homebrew/shims/mac/super/gcc-6 delete mode 120000 Library/Homebrew/shims/mac/super/i686-apple-darwin11-llvm-gcc-4.2 delete mode 120000 Library/Homebrew/shims/mac/super/llvm-gcc-4.2 delete mode 120000 Library/Homebrew/shims/super/gcc-4.9 delete mode 120000 Library/Homebrew/shims/super/gcc-5 delete mode 120000 Library/Homebrew/shims/super/gcc-6 delete mode 120000 Library/Homebrew/shims/super/i686-apple-darwin11-llvm-gcc-4.2 delete mode 120000 Library/Homebrew/shims/super/llvm-gcc-4.2 diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 33c1f3aad80f7..7097260fe47bc 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, diff --git a/Library/Homebrew/shims/linux/super/gcc-4.2 b/Library/Homebrew/shims/linux/super/gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/linux/super/gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/linux/super/gcc-4.9 b/Library/Homebrew/shims/linux/super/gcc-4.9 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/linux/super/gcc-4.9 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/linux/super/gcc-5 b/Library/Homebrew/shims/linux/super/gcc-5 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/linux/super/gcc-5 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/linux/super/gcc-6 b/Library/Homebrew/shims/linux/super/gcc-6 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/linux/super/gcc-6 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/linux/super/llvm-gcc-4.2 b/Library/Homebrew/shims/linux/super/llvm-gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/linux/super/llvm-gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/gcc-4.2 b/Library/Homebrew/shims/mac/super/gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/mac/super/gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/gcc-4.9 b/Library/Homebrew/shims/mac/super/gcc-4.9 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/mac/super/gcc-4.9 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/gcc-5 b/Library/Homebrew/shims/mac/super/gcc-5 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/mac/super/gcc-5 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/gcc-6 b/Library/Homebrew/shims/mac/super/gcc-6 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/mac/super/gcc-6 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/i686-apple-darwin11-llvm-gcc-4.2 b/Library/Homebrew/shims/mac/super/i686-apple-darwin11-llvm-gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/mac/super/i686-apple-darwin11-llvm-gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/llvm-gcc-4.2 b/Library/Homebrew/shims/mac/super/llvm-gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/mac/super/llvm-gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/gcc-4.9 b/Library/Homebrew/shims/super/gcc-4.9 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/super/gcc-4.9 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/gcc-5 b/Library/Homebrew/shims/super/gcc-5 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/super/gcc-5 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/gcc-6 b/Library/Homebrew/shims/super/gcc-6 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/super/gcc-6 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/i686-apple-darwin11-llvm-gcc-4.2 b/Library/Homebrew/shims/super/i686-apple-darwin11-llvm-gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/super/i686-apple-darwin11-llvm-gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/llvm-gcc-4.2 b/Library/Homebrew/shims/super/llvm-gcc-4.2 deleted file mode 120000 index 2652f5f42c003..0000000000000 --- a/Library/Homebrew/shims/super/llvm-gcc-4.2 +++ /dev/null @@ -1 +0,0 @@ -cc \ No newline at end of file