Mesa (master): gitlab-ci: Set ccache path for cross compilers in meson cross file

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 1 09:58:54 UTC 2019


Module: Mesa
Branch: master
Commit: e55df4c8596893ca7258a9f199610d8528d46640
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e55df4c8596893ca7258a9f199610d8528d46640

Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Mon Sep 30 10:36:04 2019 +0200

gitlab-ci: Set ccache path for cross compilers in meson cross file

Without this, meson didn't pick up ccache for cross builds.

Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

---

 .gitlab-ci.yml               | 2 +-
 .gitlab-ci/debian-install.sh | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3d0e884bce5..c9c7af53f42 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@
 # repository's registry will be used there as well.
 variables:
   UPSTREAM_REPO: mesa/mesa
-  DEBIAN_TAG: "2019-09-18"
+  DEBIAN_TAG: "2019-09-30"
   DEBIAN_ARM64_TAG: "arm64v8-2019-08-09"
   STRETCH_TAG: "2019-09-18"
   DEBIAN_VERSION: buster-slim
diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh
index 63b7270f50d..ef690ce830c 100644
--- a/.gitlab-ci/debian-install.sh
+++ b/.gitlab-ci/debian-install.sh
@@ -199,6 +199,8 @@ apt-get install -y --no-remove libxml2-utils
 for arch in $CROSS_ARCHITECTURES; do
   cross_file="/cross_file-$arch.txt"
   /usr/share/meson/debcrossgen --arch "$arch" -o "$cross_file"
+  # Explicitly set ccache path for cross compilers
+  sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
   # Work around a bug in debcrossgen that should be fixed in the next release
   if [ "$arch" = "i386" ]; then
     sed -i "s|cpu_family = 'i686'|cpu_family = 'x86'|g" "$cross_file"




More information about the mesa-commit mailing list