From b0d906f0f8d90c08b0b799d5cf0fd18bf78c30da Mon Sep 17 00:00:00 2001 From: Izaak Beekman Date: Fri, 29 Apr 2016 12:19:35 -0400 Subject: [PATCH] compilers: support gcc 6 --- Library/ENV/4.3/g++-6 | 1 + Library/ENV/4.3/gcc-6 | 1 + Library/Homebrew/compilers.rb | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 120000 Library/ENV/4.3/g++-6 create mode 120000 Library/ENV/4.3/gcc-6 diff --git a/Library/ENV/4.3/g++-6 b/Library/ENV/4.3/g++-6 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/ENV/4.3/g++-6 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/ENV/4.3/gcc-6 b/Library/ENV/4.3/gcc-6 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/Library/ENV/4.3/gcc-6 @@ -0,0 +1 @@ +cc \ No newline at end of file diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 2b93f9f292..a04f75f6d1 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -1,7 +1,7 @@ # @private module CompilerConstants - GNU_GCC_VERSIONS = %w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5] - GNU_GCC_REGEXP = /^gcc-(4\.[3-9]|5)$/ + GNU_GCC_VERSIONS = %w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5 6] + GNU_GCC_REGEXP = /^gcc-(4\.[3-9]|[5-6])$/ COMPILER_SYMBOL_MAP = { "gcc-4.0" => :gcc_4_0, "gcc-4.2" => :gcc,