If sccache installed, use it

This commit is contained in:
Thomas Forgione 2019-03-19 18:05:22 +01:00
parent 43c32e23a1
commit e926df21ac
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@ fi
# Rust path
if [ -d $HOME/.cargo ]; then
export PATH=$HOME/.cargo/bin:$PATH
# Use sccache if available
command -v sccache > /dev/null 2>&1
if [ $? -eq 0 ]; then
export RUSTC_WRAPPER=sccache
fi
fi
# Node path