+++ /dev/null
-#!/bin/sh -e
-
-if [ "$(ps -p $(ps -p $PPID -o ppid --no-headers) -o comm --no-headers)" != ninja ]; then
- # Not invoked by ninja (e.g. for a meson feature check)
- exec ccache g++ "$@"
-fi
-
-if [ "$(eval printf "'%s'" "\"\${$(($#-1))}\"")" = "-c" ]; then
- # Not invoked for linking
- exec ccache g++ "$@"
-fi
-
-# Compiler invoked by ninja for linking. Add -Werror to turn compiler warnings into errors
-# with LTO. (meson's werror should arguably do this, but meanwhile we need to)
-exec ccache g++ "$@" -Werror
+++ /dev/null
-#!/bin/sh -e
-
-if [ "$(ps -p $(ps -p $PPID -o ppid --no-headers) -o comm --no-headers)" != ninja ]; then
- # Not invoked by ninja (e.g. for a meson feature check)
- exec ccache gcc "$@"
-fi
-
-if [ "$(eval printf "'%s'" "\"\${$(($#-1))}\"")" = "-c" ]; then
- # Not invoked for linking
- exec ccache gcc "$@"
-fi
-
-# Compiler invoked by ninja for linking. Add -Werror to turn compiler warnings into errors
-# with LTO. (meson's werror should arguably do this, but meanwhile we need to)
-exec ccache gcc "$@" -Werror
#!/bin/sh -e
+if command -V ccache >/dev/null 2>/dev/null; then
+ CCACHE=ccache
+else
+ CCACHE=
+fi
+
if [ "$(ps -p $(ps -p $PPID -o ppid --no-headers) -o comm --no-headers)" != ninja ]; then
# Not invoked by ninja (e.g. for a meson feature check)
- exec g++ "$@"
+ exec $CCACHE g++ "$@"
fi
if [ "$(eval printf "'%s'" "\"\${$(($#-1))}\"")" = "-c" ]; then
# Not invoked for linking
- exec g++ "$@"
+ exec $CCACHE g++ "$@"
fi
# Compiler invoked by ninja for linking. Add -Werror to turn compiler warnings into errors
# with LTO. (meson's werror should arguably do this, but meanwhile we need to)
-exec g++ "$@" -Werror
+exec $CCACHE g++ "$@" -Werror
#!/bin/sh -e
+if command -V ccache >/dev/null 2>/dev/null; then
+ CCACHE=ccache
+else
+ CCACHE=
+fi
+
if [ "$(ps -p $(ps -p $PPID -o ppid --no-headers) -o comm --no-headers)" != ninja ]; then
# Not invoked by ninja (e.g. for a meson feature check)
- exec gcc "$@"
+ exec $CCACHE gcc "$@"
fi
if [ "$(eval printf "'%s'" "\"\${$(($#-1))}\"")" = "-c" ]; then
# Not invoked for linking
- exec gcc "$@"
+ exec $CCACHE gcc "$@"
fi
# Compiler invoked by ninja for linking. Add -Werror to turn compiler warnings into errors
# with LTO. (meson's werror should arguably do this, but meanwhile we need to)
-exec gcc "$@" -Werror
+exec $CCACHE gcc "$@" -Werror
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12,asahi,crocus"
VULKAN_DRIVERS: swrast
EXTRA_OPTION: >
- --native-file .gitlab-ci/build/meson-native-lto-wrappers-ccache.txt
+ --native-file .gitlab-ci/build/meson-native-lto-wrappers.txt
-D spirv-to-dxil=true
-D osmesa=true
-D tools=drm-shim,etnaviv,freedreno,glsl,intel,intel-ui,nir,nouveau,lima,panfrost,asahi
+++ /dev/null
-[binaries]
-c = 'ccache-gcc-link-werror.sh'
-cpp = 'ccache-g++-link-werror.sh'