From a30e27b403a1adfb2d2822a4e384d1584db7db8e Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Sat, 30 Apr 2022 22:05:35 +0200 Subject: [PATCH] compilers: add gcc-12 --- Library/Homebrew/compilers.rb | 4 ++-- Library/Homebrew/shims/linux/super/g++-12 | 1 + Library/Homebrew/shims/linux/super/gcc-12 | 1 + Library/Homebrew/shims/mac/super/g++-12 | 1 + Library/Homebrew/shims/mac/super/gcc-12 | 1 + Library/Homebrew/shims/super/g++-12 | 1 + Library/Homebrew/shims/super/gcc-12 | 1 + 7 files changed, 8 insertions(+), 2 deletions(-) create mode 120000 Library/Homebrew/shims/linux/super/g++-12 create mode 120000 Library/Homebrew/shims/linux/super/gcc-12 create mode 120000 Library/Homebrew/shims/mac/super/g++-12 create mode 120000 Library/Homebrew/shims/mac/super/gcc-12 create mode 120000 Library/Homebrew/shims/super/g++-12 create mode 120000 Library/Homebrew/shims/super/gcc-12 diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 0631ed7107f29..0c61affc258ec 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -3,8 +3,8 @@ # @private module CompilerConstants - GNU_GCC_VERSIONS = %w[4.9 5 6 7 8 9 10 11].freeze - GNU_GCC_REGEXP = /^gcc-(4\.9|[5-9]|10|11)$/.freeze + GNU_GCC_VERSIONS = %w[4.9 5 6 7 8 9 10 11 12].freeze + GNU_GCC_REGEXP = /^gcc-(4\.9|[5-9]|10|11|12)$/.freeze COMPILER_SYMBOL_MAP = { "gcc" => :gcc, "clang" => :clang, diff --git a/Library/Homebrew/shims/linux/super/g++-12 b/Library/Homebrew/shims/linux/super/g++-12 new file mode 120000 index 0000000000000..2652f5f42c003 --- /dev/null +++ b/Library/Homebrew/shims/linux/super/g++-12 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/linux/super/gcc-12 b/Library/Homebrew/shims/linux/super/gcc-12 new file mode 120000 index 0000000000000..2652f5f42c003 --- /dev/null +++ b/Library/Homebrew/shims/linux/super/gcc-12 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/g++-12 b/Library/Homebrew/shims/mac/super/g++-12 new file mode 120000 index 0000000000000..2652f5f42c003 --- /dev/null +++ b/Library/Homebrew/shims/mac/super/g++-12 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/gcc-12 b/Library/Homebrew/shims/mac/super/gcc-12 new file mode 120000 index 0000000000000..2652f5f42c003 --- /dev/null +++ b/Library/Homebrew/shims/mac/super/gcc-12 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/g++-12 b/Library/Homebrew/shims/super/g++-12 new file mode 120000 index 0000000000000..2652f5f42c003 --- /dev/null +++ b/Library/Homebrew/shims/super/g++-12 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/gcc-12 b/Library/Homebrew/shims/super/gcc-12 new file mode 120000 index 0000000000000..2652f5f42c003 --- /dev/null +++ b/Library/Homebrew/shims/super/gcc-12 @@ -0,0 +1 @@ +cc \ No newline at end of file