Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ENV: Add gcc-5 to compilers support C++11
Browse files Browse the repository at this point in the history
Closes #39758.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
ntkme authored and jacknagel committed May 16, 2015
1 parent 8818f4e commit 494bfac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/ENV/std.rb
Expand Up @@ -275,7 +275,7 @@ def cxx11
if compiler == :clang
append 'CXX', '-std=c++11'
append 'CXX', '-stdlib=libc++'
elsif compiler =~ /gcc-4\.(8|9)/
elsif compiler =~ /gcc-(4\.(8|9)|5)/
append 'CXX', '-std=c++11'
else
raise "The selected compiler doesn't support C++11: #{compiler}"
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/ENV/super.rb
Expand Up @@ -293,7 +293,7 @@ def cxx11
when "clang"
append 'HOMEBREW_CCCFG', "x", ''
append 'HOMEBREW_CCCFG', "g", ''
when /gcc-4\.(8|9)/
when /gcc-(4\.(8|9)|5)/
append 'HOMEBREW_CCCFG', "x", ''
else
raise "The selected compiler doesn't support C++11: #{homebrew_cc}"
Expand Down

0 comments on commit 494bfac

Please sign in to comment.