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 if uname
-m |
grep -q arm || uname
-m |
grep -q aarch64
; then
23 # Make a wrapper script for ninja to always include the -j flags
24 echo /usr
/bin
/ninja
$JFLAGS '"$@"' > /usr
/local
/bin
/ninja
25 chmod +x
/usr
/local
/bin
/ninja
27 # Set MAKEFLAGS so that all make invocations in container builds include the
28 # flags (doesn't apply to non-container builds, but we don't run make there)
29 export MAKEFLAGS
=$JFLAGS