From bf3706d2c3433bc14431d260a66210c58201d8ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 24 Sep 2025 16:04:00 +0400 Subject: [PATCH] scripts/archive-source: speed up downloading subprojects MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Running meson on each subproject is quite slow. According to Paolo, meson will run download tasks in parallel. Signed-off-by: Marc-André Lureau Reviewed-by: Alex Bennée Message-ID: <20250924120426.2158655-4-marcandre.lureau@redhat.com> --- scripts/archive-source.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/archive-source.sh b/scripts/archive-source.sh index 476a996a70d..34ea86b6d3d 100755 --- a/scripts/archive-source.sh +++ b/scripts/archive-source.sh @@ -77,9 +77,10 @@ function subproject_dir() { git archive --format tar "$(tree_ish)" > "$tar_file" test $? -ne 0 && error "failed to archive qemu" +meson subprojects download $subprojects +test $? -ne 0 && error "failed to download subprojects $subprojects" + for sp in $subprojects; do - meson subprojects download $sp - test $? -ne 0 && error "failed to download subproject $sp" tar --append --file "$tar_file" --exclude=.git subprojects/"$(subproject_dir $sp)" test $? -ne 0 && error "failed to append subproject $sp to $tar_file" done -- 2.47.3