Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] classes/meson: use ninja explicitly when compiling
@ 2026-06-29 14:15 Ross Burton
  2026-06-29 14:15 ` [PATCH 2/3] systemd-systemctl-native: update MESON_TARGET for direct ninja use Ross Burton
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ross Burton @ 2026-06-29 14:15 UTC (permalink / raw)
  To: openembedded-core

"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>
---
 meta/classes-recipe/meson.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index 9bed293603c..a4643591103 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -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() {
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-06-30  9:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29 14:15 [PATCH 1/3] classes/meson: use ninja explicitly when compiling Ross Burton
2026-06-29 14:15 ` [PATCH 2/3] systemd-systemctl-native: update MESON_TARGET for direct ninja use Ross Burton
2026-06-29 14:15 ` [PATCH 3/3] systemd-systemctl-native: remove systemd-sysv-install logic Ross Burton
2026-06-29 14:32 ` [OE-core] [PATCH 1/3] classes/meson: use ninja explicitly when compiling Khem Raj
2026-06-29 15:57   ` Ross Burton
2026-06-29 18:17     ` Khem Raj
2026-06-30  8:13 ` Mathieu Dubois-Briand
2026-06-30  8:20   ` Daniel Turull
2026-06-30  9:16     ` Mathieu Dubois-Briand
2026-06-30  9:17     ` Ross Burton
2026-06-30  9:20       ` Daniel Turull
2026-06-30  9:57         ` Daniel Turull

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox