tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: C++20 and gcc12/10
On Fri, Apr 04, 2025 at 08:06:16AM +0100, Jonathan Perkin wrote:
> > Is it reasonable to commit
> >
> > -USE_CXX_FEATURES= c++20
> > +# gcc10's C++20 support seems to be adequate and since an explicit
> > +# requirement of C++20 requires building gcc12 on 10.x and elsewhere,
> > +# hold off on the stricter constraint for now.
> > +#USE_CXX_FEATURES= c++20
> > +GCC_REQD+= 10
> >
> > in packages where it works? It's easy enough to put back the stronger
> > constraint if the build stops working.
>
> No, this belongs in infrastructure. A package should only have to declare
> what it needs in terms of compiler support, not have OS-specific hacks
> spread across them. Since adding support for *_FEATURES there shouldn't be
> any GCC_REQD in packages.
Ahem. There's nothing OS-specific about "it works with gcc10".
> [snip irrelevant]
>
> Also, if only specific parts of c++20 are required and they would be
> satisfied by GCC 10.x then they should be newly added to USE_CXX_FEATURES
> and handled appropriately.
ok then, so what should the FEATURE be called? c++20-gcc10? c++20-lite?
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index