Android 编译使用CCACHE

来源:互联网 发布:制作游戏视频软件 编辑:程序博客网 时间:2024/06/05 05:57

Using ccache
ccache is a compiler cache for C and C++ that can help make builds faster. In the root of the source tree, do the following:
ccache 是C与C++的编译缓存,它可以使得编译项目更快。在安卓源码根目录下,执行下列命令

$ export USE_CCACHE=1$ export CCACHE_DIR=/<path_of_your_choice>/.ccache$ prebuilts/misc/linux-x86/ccache/ccache -M 50G

The suggested cache size is 50-100G.

On Linux, you can watch ccache being used by doing the following:

$ watch -n1 -d prebuilts/misc/linux-x86/ccache/ccache -s
0 0
原创粉丝点击