3 # Common setup among container builds before we get to building code.
5 export CCACHE_COMPILERCHECK
=content
6 export CCACHE_COMPRESS
=true
7 export CCACHE_DIR
=/cache
/mesa
/ccache
8 export PATH
=/usr
/lib
/ccache
:$PATH
10 # CMake ignores $PATH, so we have to force CC/GCC to the ccache versions.
11 # Watch out, you can't have spaces in here because the renderdoc build fails.
12 export CC
="/usr/lib/ccache/gcc"
13 export CXX
="/usr/lib/ccache/g++"
17 # Make a wrapper script for ninja to always include the -j flags
18 echo '#!/bin/sh -x' > /usr
/local
/bin
/ninja
19 echo '/usr/bin/ninja -j${FDO_CI_CONCURRENT:-4} "$@"' >> /usr
/local
/bin
/ninja
20 chmod +x
/usr
/local
/bin
/ninja
22 # Set MAKEFLAGS so that all make invocations in container builds include the
23 # flags (doesn't apply to non-container builds, but we don't run make there)
24 export MAKEFLAGS
="-j${FDO_CI_CONCURRENT:-4}"