diff .shell.d/99.sccache.sh @ 481:b2a3bee0d975

shell: automatically enable sccache if it's available
author Augie Fackler <raf@durin42.com>
date Tue, 07 Jan 2020 16:49:00 -0500
parents
children 0593cba244a8
line wrap: on
line diff
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