changeset 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 4c5814d3cfd8
children 0731ceeb27dd
files .shell.d/99.sccache.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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