This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Come up with -flto=auto option.
On 7/24/19 9:03 AM, Allan Sandfeld Jensen wrote:
> On Mittwoch, 24. Juli 2019 08:45:21 CEST Martin Liška wrote:
>> On 7/24/19 12:11 AM, Allan Sandfeld Jensen wrote:
>>> On Dienstag, 23. Juli 2019 10:30:07 CEST Martin Liška wrote:
>>>> 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.
>>> That's really nice.
>>> How much extra work would it be to make it support a posix make jobserver?
>> We do support it via -flto=jobserver:
> Good to know :)
>> Problem is that nowadays you how much more common make systems like ninja,
>> meson and others that probably do not support that.
> There are patches to enable it in ninja, and I know some Linux distros apply
> the patches by default. Though that is more listening, so it probably requires
> launching ninja using make, if you want to be able to pass it own to gcc.
Btw. I know that Nathan will need a much closer integration between a compiler
and a build system for hit C++ modules work. That can be a good opportunity
for the LTO to utilize the infrastructure as well.