tech-pkg archive

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

Re: c++11



On Thu, Nov 03, 2016 at 01:56:20PM +0100, Thomas Klausner wrote:
> Hi!
> 
> Currently, when a package needs C++11, we set
> 
> CXXFLAGS+= -std=c++11
> 
> and hope for the best, i.e. that the platform compiler supports this.
> 
> Shouldn't we rather add support to USE_LANGUAGES like this:
> 
> USE_LANGUAGES+=	c++11
> 
> and make bsd.pkg.mk set CXXFLAGS and request a good-enough compiler?
>  Thomas

C++14 is also a thing (and the default for GCC6 and above)
GCC 5, and Clang 3.4 (apparently)


Home | Main Index | Thread Index | Old Index