1. 安装brew
sudo su
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
2. 安装ccache
brew install ccache
3.加入到环境变量PATH中去echo "export PATH=\$PATH:/usr/local/Cellar/ccache/3.1.9/bin" >> ~/.bash_profile;
source ~/.bash_profile
4.加环境变量
echo "export NDK_CCACHE=ccache" >> ~/.bash_profile
source ~/.bash_profile

本文介绍如何通过Brew在Mac上安装ccache,并将其正确地添加到环境变量中,以提升编译速度。文章包括安装Brew、安装ccache及设置环境变量的具体步骤。
3万+

被折叠的 条评论
为什么被折叠?



