[geocode-glib/wip/hadess/fixes: 3/4] build: Don't assume gir can't be cross compiled



commit 792bfdb0eba9df4a68d1cc4639c462aa12cf3a34
Author: maxice8 <thinkabit ukim gmail com>
Date:   Thu Feb 7 15:59:51 2019 -0200

    build: Don't assume gir can't be cross compiled
    
    This is an outdated assumption that caused problems in various
    packages. It should be possible to run cross-compiled binaries using
    qemu for example.
    
    Closes: #3

 geocode-glib/meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build
index 8bc2bfc..0377535 100644
--- a/geocode-glib/meson.build
+++ b/geocode-glib/meson.build
@@ -69,10 +69,9 @@ pkgconf.generate(libraries: libgcglib,
                  ])
 
 gir = find_program('g-ir-scanner', required: false)
-cross_build = meson.is_cross_build()
 enable_gir = get_option('enable-introspection')
 
-if gir.found() and not cross_build and enable_gir
+if gir.found() and enable_gir
   gir_args = [
     '--quiet',
        '--c-include=geocode-glib/geocode-glib.h'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]