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:
parent
14981e6265
commit
3649b31765
@ -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}"
|
||||||
|
|||||||
@ -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}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user