Enable ccache for faster builds

This commit is contained in:
topjohnwu
2021-09-07 22:50:47 -07:00
committed by John Wu
parent 69fa7f238d
commit 3ee6a2baf2
2 changed files with 37 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
OS=$(uname)
CCACHE_VER=4.4
case $OS in
Darwin )
brew install ccache
ln -s $(which ccache) ./ccache
;;
Linux )
sudo apt-get install -y ccache
ln -s $(which ccache) ./ccache
;;
* )
curl -OL https://github.com/ccache/ccache/releases/download/v${CCACHE_VER}/ccache-${CCACHE_VER}-windows-64.zip
unzip -j ccache-*-windows-64.zip '*/ccache.exe'
;;
esac