"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>
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() {