summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-03-08 09:48:36 -0500
committerPhilip Withnall <pwithnall@endlessos.org>2022-05-06 13:17:11 +0100
commit374be41433af5cdc41b664ceaa76e0b571ae5244 (patch)
treecf067f2bf936adf9e2c7a6401e5f4bb1fa7e889d /gmodule
parent25ab87d8e599b4f07842d342cb5fb06b3aa6247b (diff)
downloadglib-374be41433af5cdc41b664ceaa76e0b571ae5244.tar.gz
meson: Use meson.can_run_host_binaries()
It is not only shorter than `not meson.is_cross_build() or meson.has_exe_wrapper()` but also handle the case of cross compiling to a compatible arch such as building for i386 on an amd64.
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmodule/meson.build b/gmodule/meson.build
index 7a18d8868..f34be805c 100644
--- a/gmodule/meson.build
+++ b/gmodule/meson.build
@@ -25,7 +25,7 @@ if g_module_impl == 'G_MODULE_IMPL_DL'
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
message('Building for MSVC: assuming that symbols are prefixed with underscore')
g_module_need_uscore = 1
- elif meson.has_exe_wrapper()
+ elif meson.can_run_host_binaries()
# FIXME: communicate result via stdout instead of return value, so non-0 return is not printed in bold red
rres = cc.run(dlopen_dlsym_test_code,
dependencies : libdl_dep,