blob: d00656fc88c214316c5d228adf88c4098d0c2cc8 [file] [log] [blame]
Andrew Geisslerc9f78652020-09-18 14:11:35 -05001From df5848f423ec0f4b3e519900014349a0c00b1969 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 17 Aug 2020 16:36:03 +0200
4Subject: [PATCH] Do not disable introspection in cross builds.
5
6Yocto can and does support introspection cross builds, through
7running target binaries under qemu emulation.
8
9Upstream-Status: Pending
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 src/meson.build | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/meson.build b/src/meson.build
16index 1865633..5e1787c 100644
17--- a/src/meson.build
18+++ b/src/meson.build
19@@ -634,7 +634,7 @@ if have_gobject
20 gir = find_program('g-ir-scanner', required: get_option('introspection'))
21 build_gir = gir.found()
22
23- build_gir = build_gir and not meson.is_cross_build()
24+ build_gir = build_gir
25 if not build_gir and get_option('introspection').enabled()
26 error('Introspection support is requested but it isn\'t available in cross builds')
27 endif