carlodandan / OrangeFox-Action-Builder

OrangeFox Recovery - Action Builder
26 stars 322 forks source link

Enable C cache to speed up compilation #8

Closed cachiusa closed 6 months ago

cachiusa commented 6 months ago

In my case, a 53 minutes build have reduced time to only 19 minutes

carlodandan commented 6 months ago

I'll check and test that. Thank you.

carlodandan commented 6 months ago

Hmmm. But what if the second build is not the same device from previous build? Will it cause issue or will ccache work fine?

cachiusa commented 6 months ago

I'm sure it won't cause problems. Many AOSP roms use it to save build time, especially for large amount of devices they support. You can read more about it here: https://ccache.dev/manual/4.9.1.html#_how_ccache_works

Or you can add an option where user choose to use ccache or not for their build

carlodandan commented 6 months ago

Alright, its already merge anyway. Thanks.

Though making it optional sounds like a good idea too.

cachiusa commented 3 months ago

I added that option in #12