Setting up ccache

You can optionally tell the build to use the ccache compilation tool. Ccache acts as a compiler cache that can be used to speed-up rebuilds. This works very well if you do "make clean" often, or if you frequently switch between different build products.

Put the following in your .bashrc or equivalent.

export USE_CCACHE=1
By default the cache will be stored in ~/.ccache. If your home directory is on NFS or some other non-local filesystem, you will want to specify the directory in your .bashrc as well.

export CCACHE_DIR=<path-to-your-cache-directory>
The suggested cache size is 50-100GB. You will need to run the following command once you have downloaded the source code:

prebuilts/misc/linux-x86/ccache/ccache -M 50G


you can use following command to monitoe ccache ststus:

watch -n1 -d prebuilts/misc/linux-x86/ccache/ccache -s


reference document:
http://source.android.com/source/initializing.html#setting-up-ccache

arrow
arrow
    文章標籤
    android
    全站熱搜

    CuteParrot 發表在 痞客邦 留言(0) 人氣()