This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Come up with -flto=auto option.
- From: Allan Sandfeld Jensen <linux at carewolf dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Martin Liška <mliska at suse dot cz>
- Date: Wed, 24 Jul 2019 00:11:21 +0200
- Subject: Re: [PATCH] Come up with -flto=auto option.
- References: <95f20c0a-81a3-2319-326b-3c5baf71e2d1@suse.cz>
On Dienstag, 23. Juli 2019 10:30:07 CEST Martin Liška wrote:
> Hi.
>
> As we as openSUSE started using -flto, I see it very handy to have
> an option value that will automatically detect number of cores
> that can be used for parallel LTRANS phase.
>
> Thoughts?
>
That's really nice.
How much extra work would it be to make it support a posix make jobserver?
As far as I understand, you would need to guess a partition size first (as
your patch here does), but then only start each job when given a token from
the jobserver FD.
With that the integration to existing build infrastructure would be optimal.
Cheers
'Allan