Meson: fix support for aarch64-w64-mingw32 (Windows on ARM64)

This patch fixes a build error when compiling with GCC cross compiler for Windows on ARM64.
See issue #3490 for details.

Signed-off-by: Carlo Bramini carlo_bramini@users.sourceforge.net
Fixes: #3490
Closes #3490
This commit is contained in:
Carlo Bramini 2024-10-03 14:53:00 +00:00 committed by carlo-bramini
parent 7f8f0842d0
commit 2986cd3793

View File

@ -1740,7 +1740,7 @@ glibconfig_conf.set('guint64_constant', guint64_constant)
if host_system == 'windows'
glibconfig_conf.set('g_pid_type', 'void*')
glibconfig_conf.set_quoted('g_pid_format', 'p')
if host_machine.cpu_family() == 'x86_64'
if host_machine.cpu_family() in ['x86_64', 'aarch64']
glibconfig_conf.set_quoted('g_pollfd_format', '%#' + int64_m + 'x')
else
glibconfig_conf.set_quoted('g_pollfd_format', '%#x')