If sccache installed, use it
This commit is contained in:
parent
43c32e23a1
commit
e926df21ac
|
@ -10,6 +10,12 @@ fi
|
||||||
# Rust path
|
# Rust path
|
||||||
if [ -d $HOME/.cargo ]; then
|
if [ -d $HOME/.cargo ]; then
|
||||||
export PATH=$HOME/.cargo/bin:$PATH
|
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
|
fi
|
||||||
|
|
||||||
# Node path
|
# Node path
|
||||||
|
|
Loading…
Reference in New Issue