diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 26b2bc1b6d..0631ed7107 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].freeze - GNU_GCC_REGEXP = /^gcc-(4\.9|[5-9]|10)$/.freeze + 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 COMPILER_SYMBOL_MAP = { "gcc" => :gcc, "clang" => :clang, diff --git a/Library/Homebrew/shims/linux/super/g++-11 b/Library/Homebrew/shims/linux/super/g++-11 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/Homebrew/shims/linux/super/g++-11 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/linux/super/gcc-11 b/Library/Homebrew/shims/linux/super/gcc-11 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/Homebrew/shims/linux/super/gcc-11 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/g++-11 b/Library/Homebrew/shims/mac/super/g++-11 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/Homebrew/shims/mac/super/g++-11 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/mac/super/gcc-11 b/Library/Homebrew/shims/mac/super/gcc-11 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/Homebrew/shims/mac/super/gcc-11 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/g++-11 b/Library/Homebrew/shims/super/g++-11 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/Homebrew/shims/super/g++-11 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/shims/super/gcc-11 b/Library/Homebrew/shims/super/gcc-11 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/Homebrew/shims/super/gcc-11 @@ -0,0 +1 @@ +cc \ No newline at end of file