getsolus / ypkg

Modern, declarative, structured build format
https://getsol.us
GNU General Public License v3.0
22 stars 11 forks source link

Build with fat LTO objects by default and strip LTO bytecode from static archives #74

Closed joebonrichie closed 5 months ago

joebonrichie commented 6 months ago

LTO Bytecode is non portable. Let's build everything with fat lto objects then strip the bytecode after the fact.

Note: only clang 18 supports fat lto objects

joebonrichie commented 6 months ago

Confirmed working with gnu toolchain, building a static file with LTO and fat lto objects strip will now remove the lto bytecode sections from the archive.

We'll have to wait until llvm/clang 18 lands in the repo for it's fat lto objects support.

joebonrichie commented 5 months ago

Good to go now LLVM/clang 18 is in unstable.