AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

Add an option for using '-fwhopr' instead of '-flto' #81

Open Artoria2e5 opened 8 years ago

Artoria2e5 commented 8 years ago

This splits up the LTO work (potentially across cores), and makes LTO'ing big programs less painful.

https://gcc.gnu.org/onlinedocs/gccint/LTO-Overview.html

MingcongBai commented 8 years ago

I will test this out later today to see if there is some likelihood for build failures. If -fwhole-program is able to be used in a single thread environment, this should be enabled by default.