solus-project / ypkg

Modern, declarative, structured build format
https://solus-project.com/
GNU General Public License v3.0
56 stars 20 forks source link

ypkg2: Extend optimize to a list and add lto optimization #38

Closed sunnyflunk closed 6 years ago

sunnyflunk commented 6 years ago

Enable multiple optimizations to be listed and enable an easy lto and to unroll loops (if ever needed) option for packages where it improves size/performance.

Perhaps not the most elegant python, but I know enough now to make any necessary changes to clang flags/ld to try and get it working better.

Has been tested in various multiple flag combinations on zlib.

ikeydoherty commented 6 years ago

LGTM!