gpt4 book ai didi

android-source - 如何使用ccache来加速aosp的编译?

转载 作者:行者123 更新时间:2023-12-05 00:46:34 41 4
gpt4 key购买 nike

我在这里找到了 ccache aosp repo https://android.googlesource.com/toolchain/ccache/ ,但我不知道如何在 aosp v10 上使用 ccache,aosp 官方网站不再有任何关于 ccache 的信息,只有多个构建。 ccache 是否仍然适用于最新版本的 aosp ?

最佳答案

We no longer provide a ccache prebuilt.

Ours was old, and had a number of issues that triggered non-reproducible results and other failures. Newer ccache versions may fix some of those issues, but at the large scale of our build servers, we weren't seeing significant performance gains from using ccache -- you end up needing very good locality and/or very large caches if you're building many different configurations.

Local no-change full rebuilds were showing better results, but why not just use incremental builds at that point?

So if you still want to use ccache, continue setting USE_CCACHE, but also set the CCACHE_EXEC environment variable to the path to your ccache executable.

https://cs.android.com/android/platform/superproject/+/android10-release:build/make/core/ccache.mk;l=17

关于android-source - 如何使用ccache来加速aosp的编译?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59811821/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com