From fc80b3d67dea4315b9cb0aceb8dbe3efbd348ea6 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 04:01:13 -0800 Subject: [PATCH] :memo: Give make qemu's ninja build its measured times [ci skip] The Makefile's comment said a clean build through QEMU's Makefile took about 7 minutes. Measured on um870 (16 threads): 310 s at QEMU's -j1 against 59 s at ninja's default, the same 1951 steps and the same binary. docs/qemu.md keeps the measurement; the comment cites it. --- Makefile | 5 +++-- docs/qemu.md | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 12adb6747..c79b6d94a 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,9 @@ vendor/qemu/configure: # # ninja builds the binary, at its own default parallelism or a caller's -jN: # QEMU's Makefile hands ninja -j1 where make was given no -j, which took -# about 7 minutes for a clean build. ninja has meson regenerate build.ninja -# where a meson file changed, as install-ctl.sh's build relies on. +# 310 s for a clean build where ninja's default took 59 s (docs/qemu.md). +# ninja has meson regenerate build.ninja where a meson file changed, as +# install-ctl.sh's build relies on. QEMU_PKG_CONFIG := $(RUST_DIST)/lib/pkgconfig QEMU_PC_READ := $(QEMU_BUILD)/reims-vgpu.pc.configured QEMU_CONFIGURE_INPUTS := configure scripts/meson-buildoptions.sh pythondeps.toml VERSION diff --git a/docs/qemu.md b/docs/qemu.md index 7ae251f86..d47ada767 100644 --- a/docs/qemu.md +++ b/docs/qemu.md @@ -46,7 +46,10 @@ is newer than `build/qemu/config-host.mak`, as QEMU's own Makefile configures again. Then ninja builds `qemu-system-x86_64`, at its own default parallelism or a caller's `-jN` (QEMU's Makefile, called with no `-j`, hands ninja `-j1`), and has meson regenerate `build.ninja` where a meson file -changed. configure fetches meson subprojects (`dtc`, +changed. **Measured** on um870 (16 threads, vendor/qemu 1422502b, +2026-11-13): a clean `make qemu` after the library's dist built +QEMU's 1951 steps in 310 s through QEMU's Makefile at `-j1`, and in 59 s +through ninja at its default, to the same binary. configure fetches meson subprojects (`dtc`, `keycodemapdb`, ...) into the source's `subprojects/`, which its own `.gitignore` covers.