ClickHouse/debian/pbuilder-hooks/A00ccache
proller 38fd75f305
Travis: Try fix ccache (#1900)
* Travis: Try fix ccache
2018-02-13 22:39:21 +03:00

17 lines
462 B
Bash
Executable File

#!/bin/sh
# CCACHEDIR - for pbuilder ; CCACHE_DIR - for ccache
echo "CCACHEDIR=$CCACHEDIR CCACHE_DIR=$CCACHE_DIR SET_CCACHEDIR=$SET_CCACHEDIR"
[ -z "$CCACHE_DIR" ] && export CCACHE_DIR=${CCACHEDIR:=${SET_CCACHEDIR=/var/cache/pbuilder/ccache}}
if [ -n "$CCACHE_DIR" ]; then
mkdir -p $CCACHE_DIR || true
chown -R $BUILDUSERID:$BUILDUSERID $CCACHE_DIR || true
chmod -R a+rwx $CCACHE_DIR || true
fi
ccache --show-stats
ccache -M ${CCACHE_SIZE:=32G}