On Sun, Dec 15, 2024 at 10:22:06AM +0200, Mickaël Bucas wrote:
> Le sam. 14 déc. 2024, 00:32, Andreas Sturmlechner <ast...@gentoo.org> a
> écrit :
> 
> > Every once in a while, a package requires a really up to date active
> > compiler
> > in order to build successfully. ecm.eclass had inherited such a mechanism,
> > albeit GCC specific, from older kde* eclasses. I don't think that is a good
> > place for it so I suggest to add a more universal function to
> > toolchain-funcs.eclass.
> >
> > Similar to tc-check-openmp.
> 
> 
> Hi
> 
> I was wondering: how is this check different from a version dependency in
> any *DEPEND variable?

Different compilers and multiple versions of them can be installed at
same time, and the user can pick them by setting e.g. CC=clang-18,
using gcc-config/eselect, PATH, and such.

A dependency check would only ensure that the compiler is installed,
not that it's the one that's being used, what version of it, or even
what USE is enabled for the used slot/compiler (openmp case). This
would only work if the ebuild is enforcing a specific compiler while
ignoring the user's choice.
-- 
ionen

Attachment: signature.asc
Description: PGP signature

Reply via email to