ci: don't replace ld with ld.gold if ld.gold doesn't exist
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31940>
This commit is contained in:
committed by
Marge Bot
parent
7a89e7afe3
commit
18b5108a3d
@@ -27,9 +27,14 @@ fi
|
||||
# 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"
|
||||
find /usr/bin -name \*-ld -o -name ld | \
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user