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.
This commit is contained in:
Jehan 2022-08-31 12:42:08 +02:00
parent a791151ed0
commit 99d16a6f31

View file

@ -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() {