Does ccache still works with newer AOSP?

1,639 views
Skip to first unread message

Eliane Fonseca

unread,
Jan 19, 2020, 5:41:14 PM1/19/20
to Android Building
I trying to use ccache with newer AOSP (9, 10) to attempt to speed up compiling time,but it looks like ccache is not being used even with the environment variables set. It is still possible to use ccache with AOSP 9 or 10? If not there are any alternatives and how I can use them ? Since my hardware is very underpowered (1 GHz CPU with auto-overclocking) I need to speed up the build time with the newer AOSP.

Dan Willemsen

unread,
Jan 21, 2020, 2:19:13 AM1/21/20
to Android Building
You have to provide your own ccache binary, then it should work (but I haven't tested it).

That being said, using ccache will actually slow down your builds, as it needs to do extra IO maintaining the cache. It really only helps if you're repeatedly doing clean rebuilds, in which case why aren't you using incremental builds? (It also only affects 1/3-1/2 of the build, as the rest of the actions are Java/etc)

- Dan

On Sun, Jan 19, 2020 at 2:41 PM Eliane Fonseca <fonseca...@gmail.com> wrote:
I trying to use ccache with newer AOSP (9, 10) to attempt to speed up compiling time,but it looks like ccache is not being used even with the environment variables set. It is still possible to use ccache with AOSP 9 or 10? If not there are any alternatives and how I can use them ? Since my hardware is very underpowered (1 GHz CPU with auto-overclocking) I need to speed up the build time with the newer AOSP.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/f7b5d95e-6e73-4efd-9266-360db2b2fcbe%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages