From 6181a786c09fbd90ef64829bfa5171c38fe81377 Mon Sep 17 00:00:00 2001 From: なつき Date: Thu, 7 May 2015 01:12:24 -0700 Subject: compilers: support gcc 5 Closes Homebrew/homebrew#39470. Signed-off-by: Jack Nagel --- Library/Homebrew/extend/ENV/shared.rb | 2 +- Library/Homebrew/extend/ENV/std.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/extend') diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 9b83724b2..c4162dd69 100644 --- a/Library/Homebrew/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/ENV/shared.rb @@ -15,7 +15,7 @@ module SharedEnvExtension } COMPILERS = COMPILER_SYMBOL_MAP.values + - GNU_GCC_VERSIONS.map { |n| "gcc-4.#{n}" } + GNU_GCC_VERSIONS.map { |n| "gcc-#{n}" } SANITIZED_VARS = %w[ CDPATH GREP_OPTIONS CLICOLOR_FORCE diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 4f3c9887d..773ecc4c9 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -130,7 +130,7 @@ module Stdenv alias_method :gcc_4_2, :gcc GNU_GCC_VERSIONS.each do |n| - define_method(:"gcc-4.#{n}") do + define_method(:"gcc-#{n}") do super() set_cpu_cflags end -- cgit v1.2.3