tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Selecting a C++ compiler (was: build-issues with Q3 on netbsd-6-0 (GCC_REQD, c++11..))

On Tue, Oct 10, 2017 at 08:48:27PM +0200, Edgar Fuß wrote:
> So what about something along the lines of the attached patch?
> The idea is to have the user select a GCC version to compile all C++ dialects 
> with (GCC_CXX_VERSION, default 48) and
> -- complain if the selected version doesn't support the used dialects
> -- complain if the version mandated by GCC_REQD is higher
> -- otherwise use that version instead of _GCC_REQD.
> The default should probably be chosen more intelligently and the list of 
> unsupported dialects is probably incomplete.

The problem here is that "doesn't support the used dialect" is not black
and white. For some C++11 programs, GCC 4.7 is enough, others might need
up to GCC 5.1 (for a compliant STL implementation). Similar situation
for C++14.


Home | Main Index | Thread Index | Old Index