From 8997757c6abfe657a259bc5c681628e70792b67a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 11 Mar 2020 11:11:19 -0700 Subject: [PATCH] ci: Enable ccaching of CMake builds as well. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit They ignore $PATH for unknown reasons, so you have to force the ccache wrapping yourself. Reviewed-by: Michel Dänzer Tested-by: Marge Bot Part-of: --- .gitlab-ci/container/container_pre_build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci/container/container_pre_build.sh b/.gitlab-ci/container/container_pre_build.sh index daae18fccb9..725a8b5ed4a 100755 --- a/.gitlab-ci/container/container_pre_build.sh +++ b/.gitlab-ci/container/container_pre_build.sh @@ -5,4 +5,9 @@ export CCACHE_COMPRESS=true export CCACHE_DIR=/cache/mesa/ccache export PATH=/usr/lib/ccache:$PATH +# CMake ignores $PATH, so we have to force CC/GCC to the ccache versions. +# Watch out, you can't have spaces in here because the renderdoc build fails. +export CC="/usr/lib/ccache/gcc" +export CXX="/usr/lib/ccache/g++" + ccache --show-stats -- 2.30.2