You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2017. It is now read-only.
I was just writing a new formula today for the SDSL-Lite library and am having strange issues with the test block where I compile a small .cpp file for library. It's C++11.
% which g++
/bio/linuxbrew/bin/g++
% g++ --version
g++ (Homebrew gcc 5.3.0) 5.3.0
> puts ENV.cc # in test block
/usr/bin/gcc
> puts ENV.cxx # in test block
/usr/bin/g++
> ENV.cxx11
The selected compiler doesn't support C++11: gcc
/bio/linuxbrew/Library/Homebrew/extend/ENV/std.rb:318:in `cxx11'
This is the code, which assumes that g++ has it's version suffixed on it?
def cxx11
if compiler == :clang
append "CXX", "-std=c++11"
append "CXX", "-stdlib=libc++"
elsif compiler =~ /gcc-(4\.(8|9)|5)/
append "CXX", "-std=c++11"
else
raise "The selected compiler doesn't support C++11: #{compiler}"
end
end