ci: restrict number of maximum threads

This makes LTO non-abusive to the servers.

Suggested-by: psykose <alice@ayaya.dev>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28684>
This commit is contained in:
David Heidelberg
2024-10-01 01:02:02 +09:00
committed by Marge Bot
parent afab416be4
commit ace38d8432

View File

@@ -123,6 +123,12 @@ case $CI_PIPELINE_SOURCE in
;;
esac
if [ "$LTO" == "true" ]; then
MAX_LD=2
else
MAX_LD=${FDO_CI_CONCURRENT:-4}
fi
section_switch meson-configure "meson: configure"
rm -rf _build
@@ -149,6 +155,7 @@ meson setup _build \
-D video-codecs=all \
-D werror=true \
-D b_lto=${LTO} \
-D backend_max_links=${MAX_LD} \
${EXTRA_OPTION}
cd _build
meson configure