tech-pkg archive

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

Re: A better method to require compiler features



On Thu, Jul 13, 2023 at 09:29:06AM -0400, Greg Troxel wrote:
> > In addition, users would be able to decide how missing
> > compiler features are handled.
> >
> > setting in /etc/mk.conf:
> >
> > SKIP_CXX_REQUIREMENTS=	yes
> >
> > would skip building any packages where the current compiler is
> > "good enough". This is helpful for situations where vendored
> > or specifically modified toolchains are required, and upstream
> > GCC is not suitable.
> 
> I don't understand this.  Do you mean that if yes, the contents of
> USE_CXX_FEATURES is ignored?  If so, maybe IGNORE_CXX_FEATURES, but
> really the important thing is to be clear on it.

Not quite. To fit with jperkin's idea that "compiler too old" is the
sysadmin's responsibility to fix, any package requiring an unmet C++
feature will set PKG_FAIL_REASON and be skipped in a bulk build.

This provides a way to notify admins that they may want to consider
bootstrapping a new compiler.

The name does need more brainstorming -- perhaps
FAIL_UNMET_CXX_REQUIREMENTS.


Home | Main Index | Thread Index | Old Index