Skip to contentSkip to conversation

meson: no need to rebuild on install

PATCH New Ross Burton 1 participant 1 message Dec 13, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: no need to rebuild on install

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.

---
 meta/classes-recipe/meson.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/meson.bbclass +1 -1
index 1014bd058ea..3cc94c7584f 100644
@@ -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
Signature · 1 line
2.34.1