[Mesa-dev] [PATCH] mesa: Enable LTO compilation
Chuck Atkins
chuck.atkins at kitware.com
Wed Jun 1 16:43:53 UTC 2016
>
> > With gcc 5.3.1 I end up with lib{GL,OSMesa}.so @ 44M and
> > libswrAVX{,2}.so @ 70M. With flto turned on it drops WAY down to
> > lib{GL,OSMesa}.so @ 13M and libswrAVX{,2}.so @ 18M
>
> I assume those numbers are including debugging symbols? How do stripped
> binaries compare?
>
Silly me, I didn't even consider that since I wasn't explicitly doing a
debug build. That being said, after explicitly stripping the binaries with
"strip -g", the resulting difference is negligible between the two (LTO vs
non-LTO).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160601/bdb9c4b8/attachment.html>
More information about the mesa-dev
mailing list