<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-clang.git/classes/lto.bbclass, branch warrior</title>
<subtitle>Mirror of github.com/kraj/meta-clang.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-clang.git/atom?h=warrior</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-clang.git/atom?h=warrior'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/'/>
<updated>2019-02-10T03:27:13+00:00</updated>
<entry>
<title>clang: Enable LTO and lld based on distro knobs</title>
<updated>2019-02-10T03:27:13+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2019-02-08T18:07:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=48107e9c52b6ef16174280db582b078f687ae99f'/>
<id>urn:sha1:48107e9c52b6ef16174280db582b078f687ae99f</id>
<content type='text'>
Add to local.conf or distro config the following to enable lto flavors
and lld linker

DISTRO_FEATURES += "thin-lto"
DISTRO_FEATURES += "full-lto"
DISTRO_FEATURES += "lld"

Add lto.bbclass

To enable LTO is currently per recipe, or globally

to enable globally add following to global config meta-data e.g.
local.conf

INHRIT += "lto"

other-wise enable LTO per recipe using

inherit lto to recipe via bbappend or in main recipe

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
</feed>
