summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/builder/setup-ccache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/scripts/builder/setup-ccache.sh')
-rw-r--r--taskcluster/scripts/builder/setup-ccache.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/taskcluster/scripts/builder/setup-ccache.sh b/taskcluster/scripts/builder/setup-ccache.sh
new file mode 100644
index 000000000..3c03b2640
--- /dev/null
+++ b/taskcluster/scripts/builder/setup-ccache.sh
@@ -0,0 +1,9 @@
+#! /bin/bash -ex
+
+test -d $1 # workspace must exist at this point...
+WORKSPACE=$( cd "$1" && pwd )
+
+export CCACHE_DIR=$WORKSPACE/ccache
+
+ccache -M 12G
+ccache -s