[gimp/wip/Jehan/native-win64-build: 2/2] Still enable ccache for GIMP itself.




commit ed782ce721fbebad342b5a504939e9085ef04e70
Author: Jehan <jehan girinstud io>
Date:   Tue May 4 20:36:07 2021 +0200

    Still enable ccache for GIMP itself.

 .gitlab-ci.yml               |  3 +++
 build/windows/build-msys2.sh | 18 ++++++++++--------
 2 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a2fb23674d..467088d223 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -202,6 +202,9 @@ gimp-native-win64:
     expire_in: 2 days
     paths:
     - _install
+  cache:
+    paths:
+    - _ccache/
   needs: []
 
 deps-win64:
diff --git a/build/windows/build-msys2.sh b/build/windows/build-msys2.sh
index 0e2384ad56..51a1aee4bc 100644
--- a/build/windows/build-msys2.sh
+++ b/build/windows/build-msys2.sh
@@ -31,6 +31,7 @@ pacman --noconfirm -Suy
 pacman --noconfirm -S --needed \
     base-devel \
     mingw-w64-$MSYS2_ARCH-toolchain \
+    mingw-w64-$MSYS2_ARCH-ccache \
     mingw-w64-$MSYS2_ARCH-pkg-config \
     mingw-w64-$MSYS2_ARCH-meson \
     \
@@ -74,11 +75,6 @@ pacman --noconfirm -S --needed \
     mingw-w64-$MSYS2_ARCH-vala \
     mingw-w64-$MSYS2_ARCH-xpm-nox
 
-#mkdir -p _ccache
-#export CCACHE_BASEDIR="$(pwd)"
-#export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
-#export CC="ccache gcc"
-
 export GIT_DEPTH=1
 export GIMP_PREFIX=`realpath ~/_install`
 export PATH="$GIMP_PREFIX/bin:$PATH"
@@ -109,11 +105,17 @@ ninja install
 cd ../..
 
 # Build
-#ccache --zero-stats
-#ccache --show-stats
+
+mkdir -p _ccache
+export CCACHE_BASEDIR="$(pwd)"
+export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
+export CC="ccache gcc"
+
+ccache --zero-stats
+ccache --show-stats
 
 ./autogen.sh --prefix="${GIMP_PREFIX}"
 make -j4
 make install
 
-#ccache --show-stats
+ccache --show-stats


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]