# HG changeset patch # User Augie Fackler # Date 1578433740 18000 # Node ID b2a3bee0d975f46c91992e3045b4ea08175906fe # Parent 4c5814d3cfd8ee4f5e553075534c2286715ae232 shell: automatically enable sccache if it's available diff --git a/.shell.d/99.sccache.sh b/.shell.d/99.sccache.sh new file mode 100644 --- /dev/null +++ b/.shell.d/99.sccache.sh @@ -0,0 +1,6 @@ +if which sccache > /dev/null ; then + export SCCACHE_CACHE_SIZE="1G" + export CC='sccache cc' + export CXX='sccache c++' + export RUSTC_WRAPPER="$(which sccache)" +fi