]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
meson: no need to rebuild on install
authorRoss Burton <ross.burton@arm.com>
Tue, 13 Dec 2022 16:14:07 +0000 (16:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Dec 2022 23:49:04 +0000 (23:49 +0000)
On install, Meson will rebuild targets which don't define their
dependencies, as it can't know if they need to be rebuilt or not.

This includes gtk-doc, which can be slow to run.  As we control the
execution of meson we know that a rebuild isn't required, so we can pass
--no-rebuild and speed up the install task.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/meson.bbclass

index 1014bd058eac849a43f943b9499a64280218d21f..3cc94c7584f0d02d8e73300847d6f7f46caa64fa 100644 (file)
@@ -173,7 +173,7 @@ meson_do_compile() {
 }
 
 meson_do_install() {
-    meson install --destdir ${D}
+    meson install --destdir ${D} --no-rebuild
 }
 
 EXPORT_FUNCTIONS do_configure do_compile do_install