]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/meson: use ninja explicitly when compiling
authorRoss Burton <ross.burton@arm.com>
Mon, 29 Jun 2026 14:15:57 +0000 (15:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jul 2026 10:16:15 +0000 (11:16 +0100)
"meson compile" is essentially a glorified wrapper around calling ninja
that doesn't support all of the options that ninja does, so calling it
directly means builds are fractionally faster and we get direct control
over the flags that ninja is passed.

A longer rationale can be found in the Gentoo change by Eli Schwartz
that caused this patch, who is both a Gentoo and Meson developer:

https://github.com/gentoo/gentoo/commit/66011abd663671947fe07835f0d9cc360f5de317

The only change is that the compile target doesn't support the optional
convenience target type, but this is rarely used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/meson.bbclass

index 9bed293603c22036a02e388fb9acb90ecb547a1d..a464359110371f804f9e4c40a2c8a3d5def83670 100644 (file)
@@ -180,7 +180,7 @@ meson_do_configure() {
 
 do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
 meson_do_compile() {
-    meson compile -v ${PARALLEL_MAKE} ${MESON_TARGET}
+    ninja --verbose ${PARALLEL_MAKE} ${MESON_TARGET}
 }
 
 meson_do_install() {