From 5dc537afd051e60ff00731f73e02d98138d9198b Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 18 Nov 2024 11:13:04 +0100 Subject: scripts: convert run_tool to asyncio This improves the handling of keyboard interrupt, and also makes it easy to buffer the output and not mix errors from different subprocesses. This is useful for clang-tidy and will be used by clippy as well. In addition, the new code supports MESON_NUM_PROCESSES. Signed-off-by: Paolo Bonzini --- docs/markdown/snippets/num-processes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/markdown/snippets/num-processes.md b/docs/markdown/snippets/num-processes.md index e4ffdd1dc..c484d930f 100644 --- a/docs/markdown/snippets/num-processes.md +++ b/docs/markdown/snippets/num-processes.md @@ -4,4 +4,5 @@ Previously, `meson test` checked the `MESON_TESTTHREADS` variable to control the amount of parallel jobs to run; this was useful when `meson test` is invoked through `ninja test` for example. With this version, a new variable `MESON_NUM_PROCESSES` is supported with a broader scope: in addition to -`meson test`, it is also used by the `external_project` module. +`meson test`, it is also used by the `external_project` module and by +Ninja targets that invoke `clang-tidy` and `clang-format`. -- cgit v1.2.3