[gimp] meson: fix one more deprecation warning when cross-building.



commit 99d16a6f311f97a9d8b535579f471c53e4fd7b4a
Author: Jehan <jehan girinstud io>
Date:   Wed Aug 31 12:42:08 2022 +0200

    meson: fix one more deprecation warning when cross-building.
    
    This meson warning was only showing when configuring a cross-compilation
    project.
    
    Fixes:
    
    > WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.55.0': meson.has_exe_wrapper. 
use meson.can_run_host_binaries instead.

 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6a19df48a1..c8ffe04c3b 100644
--- a/meson.build
+++ b/meson.build
@@ -403,7 +403,7 @@ conf.set('PANGO_DISABLE_DEPRECATED',pangocairo.version().version_compare('<1.43'
 # Check for GLib Networking
 
 glib_networking_works_run=false
-if meson.is_cross_build() and not meson.has_exe_wrapper()
+if meson.is_cross_build() and not meson.can_run_host_binaries()
     # Cross-compilation without run capability: we won't be able to
     # check networking support.
     glib_networking_works = true
@@ -418,7 +418,7 @@ if meson.is_cross_build() and not meson.has_exe_wrapper()
     '''
     warning(glib_warning)
     warnings += glib_warning
-else # not meson.is_cross_build() or meson.has_exe_wrapper()
+else # not meson.is_cross_build() or meson.can_run_host_binaries()
     glib_networking_works_run = cc.run(
       '''#include <gio/gio.h>
       int main() {


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