The strungle is real. When I use mmm command on Android 8.1, I spend a lot
of time here:
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/1] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
in comparation
In our findings using the newer ccache on older Android revisions is just
fine.
In fact, the custom ROM community has been using the systems ccache binary
for quite a while.
Check out
https://github.com/CarbonROM/android_build_make/commit/a4eb398dabdb6ba39aeac6eae35a91b22eb8e1c4
and
It's not a Google issue. If you checkout pure AOSP 8.1 and build it you
will see performance of mm is fast. It's a problem with Qualcomm
modifications to the build system. Search your build directory for the
string "Fix Later" and run git blame.
Jacob
On Wednesday, April 4, 2018 at 7:43:06 AM
I do have some documentation posted on how to debug slow issues like this:
https://android.googlesource.com/platform/build/soong/+/master/docs/perf.md
-- It can definitely be caused by $(shell) commands in Android.mk files,
but from the first log here, you may also be hitting a known issue: