From 0bfbbc3a62d749644d5b4a225e3c68ac12877f31 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Tue, 16 Oct 2018 07:57:40 +0100 Subject: [PATCH] Make ccache work better maybe. --- scripts/build-mpv.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build-mpv.sh b/scripts/build-mpv.sh index 30ee26f..2a581b1 100755 --- a/scripts/build-mpv.sh +++ b/scripts/build-mpv.sh @@ -3,6 +3,11 @@ set -ex CFLAGS="-fPIC -Os" +export CCACHE_SLOPPINESS=time_macros + +export CFLAGS="-D__DATE__= -D__TIME__= -D__TIMESTAMP__= $CFLAGS" + + git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build || true cd mpv-build @@ -28,4 +33,5 @@ echo "--disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive ./rebuild -j`nproc` sudo ./install +ccache -s cd ..