How to configure ccache in Android
This article introduces the relevant knowledge of "how to configure ccache in Android". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Installation:
sudo apt-get install ccache
Use:
ccache -s
Display status parameters (s is the abbreviation of English status, indicating Status)
ccache -C
Clear cache (C is capital, short for Clear, meaning Clear)
Configuration:
Edit.bashrc file
vi ~/.bashrc
Add the following three lines
export NDK_CCACHE = ccacheexport CCACHE_DIR = ~/.ccache #directory arbitrary export PATH = /usr/lib/ccache:$PATHsource ~/.bashrc
The source command causes the modification to take effect immediately
Allocate cache size:
ccache -M 5G
#(allocate 5G cache)
"How to configure ccache in Android" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!