ENV: Add gcc-5 to compilers support C++11

Closes Homebrew/homebrew#39758.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
なつき 2015-05-14 10:36:56 -07:00 committed by Jack Nagel
parent 14981e6265
commit 3649b31765
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ module Stdenv
if compiler == :clang if compiler == :clang
append 'CXX', '-std=c++11' append 'CXX', '-std=c++11'
append 'CXX', '-stdlib=libc++' append 'CXX', '-stdlib=libc++'
elsif compiler =~ /gcc-4\.(8|9)/ elsif compiler =~ /gcc-(4\.(8|9)|5)/
append 'CXX', '-std=c++11' append 'CXX', '-std=c++11'
else else
raise "The selected compiler doesn't support C++11: #{compiler}" raise "The selected compiler doesn't support C++11: #{compiler}"

View File

@ -293,7 +293,7 @@ module Superenv
when "clang" when "clang"
append 'HOMEBREW_CCCFG', "x", '' append 'HOMEBREW_CCCFG', "x", ''
append 'HOMEBREW_CCCFG', "g", '' append 'HOMEBREW_CCCFG', "g", ''
when /gcc-4\.(8|9)/ when /gcc-(4\.(8|9)|5)/
append 'HOMEBREW_CCCFG', "x", '' append 'HOMEBREW_CCCFG', "x", ''
else else
raise "The selected compiler doesn't support C++11: #{homebrew_cc}" raise "The selected compiler doesn't support C++11: #{homebrew_cc}"