[systemd-devel] lto issues

Lennart Poettering lennart at poettering.net
Tue Aug 6 09:28:51 UTC 2019


On Sa, 03.08.19 19:03, Michael Biebl (mbiebl at gmail.com) wrote:

> Hi,
>
> today I tried compiling systemd v242 (on Debian sid) once using lto
> (-Db_lto=true) and once without lto (-Db_lto=false).
>
> The lto build took approximately twice as long on my laptop (using
> dpkg-buildpackage, which introduces a bit of overhead):
>
> lto:
> real 11m22,605s
> user 37m9,675s
> sys 2m51,041s
>
> nolto:
> real 6m35,615s
> user 18m51,782s
> sys 2m12,934s
>
> That's kinda expected. What suprised me though is that using lto
> produced larger binaries:

Have you pinged the toolchain maintainers of your distro about this?

Note that systemd doesn't really do much lto stuff on its own anymore,
it's now entirely between meson and your toolchain afaics.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list