Skip to content

Commit

Permalink
Merge pull request #576 from sjamgade/ccache_cleanup
Browse files Browse the repository at this point in the history
cleaning ccache
  • Loading branch information
sjamgade committed Jun 23, 2020
2 parents cb8779e + 3dee1ff commit e120b02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build
Expand Up @@ -1602,6 +1602,8 @@ if test -n "$RPMS" -a "$DO_CHECKS" != false ; then
fi

if test -n "$CCACHE" ; then
echo "... cleaning ccache"
test "$(ccache -h | grep -c evict-older-than)" != 0 && ccache --evict-older-than $((`date "+%s"` - $RECIPE_BUILD_START_TIME))
echo "... saving ccache"
tar -cf "$BUILD_ROOT/$TOPDIR/OTHER/_ccache.tar" -C "$BUILD_ROOT/.ccache/" .
fi
Expand Down

0 comments on commit e120b02

Please sign in to comment.