aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
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/Homebrew/compilers.rb
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/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb6
1 files changed, 3 insertions, 3 deletions
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