mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
18 lines
492 B
Bash
Executable File
18 lines
492 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 $DISTCC_DIR ||:
|
|
chown -R $BUILDUSERID:$BUILDUSERID $CCACHE_DIR $DISTCC_DIR ||:
|
|
chmod -R a+rwx $CCACHE_DIR $DISTCC_DIR ||:
|
|
fi
|
|
|
|
df -h
|
|
ccache --show-stats
|
|
ccache -M ${CCACHE_SIZE:=32G}
|