ci: Enable ccaching of CMake builds as well.
[mesa.git] / .gitlab-ci / container / container_pre_build.sh
1 #!/bin/sh
2
3 export CCACHE_COMPILERCHECK=content
4 export CCACHE_COMPRESS=true
5 export CCACHE_DIR=/cache/mesa/ccache
6 export PATH=/usr/lib/ccache:$PATH
7
8 # CMake ignores $PATH, so we have to force CC/GCC to the ccache versions.
9 # Watch out, you can't have spaces in here because the renderdoc build fails.
10 export CC="/usr/lib/ccache/gcc"
11 export CXX="/usr/lib/ccache/g++"
12
13 ccache --show-stats