aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/ci-setup-ccache.sh
blob: 0a5087883ffeb685cf4e71830eebb7aa9f1c7d1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if [ "$DISTRO" != "" ] ; then
  docker exec $(cat $HOME/cid)  sh -c ".ci/docker-ccache-setup.sh $1"
  docker exec $(cat $HOME/cid)  ccache -pz
else
  cp .ci/ccache.conf ~/.ccache
  ccache -o base_dir="$(pwd)"
  ccache -pz
fi