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