aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorなつき2015-05-07 01:12:24 -0700
committerJack Nagel2015-05-08 22:23:30 -0400
commit6181a786c09fbd90ef64829bfa5171c38fe81377 (patch)
tree8f302e821592b2614e40cd4101095cdbae8cf9d3 /Library
parent85cf16868d80f1fe86778e1659e3975f705a7dd6 (diff)
downloadbrew-6181a786c09fbd90ef64829bfa5171c38fe81377.tar.bz2
compilers: support gcc 5
Closes Homebrew/homebrew#39470. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
l---------Library/ENV/4.3/g++-51
l---------Library/ENV/4.3/gcc-51
-rw-r--r--Library/Homebrew/compilers.rb6
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb2
-rw-r--r--Library/Homebrew/extend/ENV/std.rb2
5 files changed, 7 insertions, 5 deletions
diff --git a/Library/ENV/4.3/g++-5 b/Library/ENV/4.3/g++-5
new file mode 120000
index 000000000..2652f5f42
--- /dev/null
+++ b/Library/ENV/4.3/g++-5
@@ -0,0 +1 @@
+cc \ No newline at end of file
diff --git a/Library/ENV/4.3/gcc-5 b/Library/ENV/4.3/gcc-5
new file mode 120000
index 000000000..2652f5f42
--- /dev/null
+++ b/Library/ENV/4.3/gcc-5
@@ -0,0 +1 @@
+cc \ No newline at end of file
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index e73f39f01..f12d9f2ff 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -1,6 +1,6 @@
module CompilerConstants
- GNU_GCC_VERSIONS = 3..9
- GNU_GCC_REGEXP = /^gcc-(4\.[3-9])$/
+ 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)$/
end
class CompilerFailure
@@ -107,7 +107,7 @@ class CompilerSelector
case compiler
when :gnu
GNU_GCC_VERSIONS.reverse_each do |v|
- name = "gcc-4.#{v}"
+ name = "gcc-#{v}"
version = compiler_version(name)
yield Compiler.new(name, version) if version
end
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