From b368a0e38076bf72d5cc6473b81ecd095aa2c8ab Mon Sep 17 00:00:00 2001 From: James Lee Date: Sat, 24 Oct 2020 19:18:55 +1100 Subject: Fix 'meson install' when cross compiling Prevent execution of target's fc-cache on host when installing --- fc-cache/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fc-cache') diff --git a/fc-cache/meson.build b/fc-cache/meson.build index 8963ac5..2222735 100644 --- a/fc-cache/meson.build +++ b/fc-cache/meson.build @@ -6,4 +6,8 @@ fccache = executable('fc-cache', ['fc-cache.c', fcstdint_h, alias_headers, ft_al ) tools_man_pages += ['fc-cache'] -meson.add_install_script('../install-cache.py', fccache.full_path()) + +# Do not try to execute target's fc-cache on host when cross compiling +if not meson.is_cross_build() + meson.add_install_script('../install-cache.py', fccache.full_path()) +endif -- cgit v1.2.1