mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
afab416be4
commit
ace38d8432
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue