Attention is currently required from: Nico Huber.
Arthur Heymans has posted comments on this change by Arthur Heymans. ( https://review.coreboot.org/c/coreboot/+/84012?usp=email )
Change subject: libpayload: Allow LTO with clang ......................................................................
Patch Set 1:
(1 comment)
File payloads/libpayload/Kconfig:
https://review.coreboot.org/c/coreboot/+/84012/comment/f7d19c30_c708d18c?usp... : PS1, Line 89: final binary size, but may increase compilation time.
How well is this tested with clang? Should we leave a warning?
hackily. Clang forwards the actual linking to /usr/bin/gcc for some reason. So if you add -fuse-ld=lld and have a compatible version installed then it works.
coreinfo with clang and lto does work.
WDYT?