ci: drop override forcing ld to be gold (and forcing gold to be installed everywhere)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32046>
This commit is contained in:
Eric Engestrom 2024-11-05 19:34:16 +01:00 committed by Marge Bot
parent 657f8a08b7
commit ba0bb03c84

View file

@ -23,19 +23,6 @@ if test -x /usr/bin/ccache; then
ccache --show-stats
fi
# When not using the mold linker (e.g. unsupported architecture), force
# linkers to gold, since it's so much faster for building. We can't use
# lld because we're on old debian and it's buggy. mingw fails meson builds
# with it with "meson.build:21:0: ERROR: Unable to determine dynamic linker"
if [ -e /usr/bin/ld.gold ]; then
find /usr/bin -name \*-ld -o -name ld | \
grep -v mingw | \
xargs -n 1 -I '{}' ln -sf '{}.gold' '{}'
else
echo "ld.gold is missing, not replacing ld with it."
echo "Builds might be slower, consider installing gold."
fi
# Make a wrapper script for ninja to always include the -j flags
{
echo '#!/bin/sh -x'