[Development] Using dwz on Qt
Allan Sandfeld Jensen
kde at carewolf.com
Thu May 14 12:30:59 CEST 2020
I recently discovered there is a binutils tools for size optimizing dwarf
debug symbols, and it really works. When applied to Qt debug symbol binaries
it makes them about 25% smaller on average (some up to 40% smaller). And that
is just the simple optimization. We can save more by combining duplicates from
multiple debug symbol binaries into one shared one, but that would change the
files we ship.
In any case. While too late for 5.15 and written for qmake so not suitable for
qt6, I would like to share my minimal change with you here, in case anybody
would like to ship smaller debug binaries.
Is there an existing cmake way to trigger the same? Though we might also want
to consider triggering compressed dwarf symbols at the same time, as that is
another great reduction, but ups the minimum tool versions required.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1140 bytes
Desc: not available
More information about the Development