From: Eric Anholt Date: Wed, 11 Mar 2020 18:11:19 +0000 (-0700) Subject: ci: Enable ccaching of CMake builds as well. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8997757c6abfe657a259bc5c681628e70792b67a;p=mesa.git ci: Enable ccaching of CMake builds as well. 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: --- 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