●添加環境變數
export USE_CCACHE=1
●建立緩存的目錄export CCACHE_DIR=<path-to-your-cache-directory>
●設定緩存的空間prebuilts/misc/linux-x86/ccache/ccache -M 50G
其他可以使用的參數選項如下所示:
Usage:
ccache [options]
ccache compiler [compile options]
compiler [compile options] (via symbolic link)
Options:
-s show statistics summary
-z zero statistics
-c run a cache cleanup
-C clear the cache completely
-F <maxfiles> set maximum files in cache
-M <maxsize> set maximum size of cache (use G, M or K)
-h this help page
-V print version number
ccache [options]
ccache compiler [compile options]
compiler [compile options] (via symbolic link)
Options:
-s show statistics summary
-z zero statistics
-c run a cache cleanup
-C clear the cache completely
-F <maxfiles> set maximum files in cache
-M <maxsize> set maximum size of cache (use G, M or K)
-h this help page
-V print version number
相關網頁
1.Initializing a Build Environment
沒有留言 :
張貼留言