[systemd-devel] Is LTO worth it?

Reindl Harald h.reindl at thelounge.net
Mon Jan 11 17:07:29 UTC 2021



Am 11.01.21 um 18:05 schrieb Michael Biebl:
> Am Mo., 11. Jan. 2021 um 16:39 Uhr schrieb Lennart Poettering
> <lennart at poettering.net>:
>> https://fedoraproject.org/wiki/LTOByDefault
> 
> Interestingly, that wiki page says, that LTO should produce smaller
> binaries, which clearly isn't the case here.
> I wonder whether the wiki is incorrect or whether this is a toolchain
> issue or if this is specific to systemd
> Or maybe this is Debian specific. Would be interested to see numbers
> from other distros.
> 
> Concerning the build speed: I wonder whether at least disabling LTO on
> our CI would make sense. We don't really care for fast/small
> executables there.

it don't make sense using different flags in CI and production builds, 
especially LTO which often points out otherwise unvisible bugs


More information about the systemd-devel mailing list