diff options
author | James Lee <jbit@jbit.net> | 2020-10-24 19:18:55 +1100 |
---|---|---|
committer | James Lee <jbit@jbit.net> | 2020-10-24 19:18:55 +1100 |
commit | b368a0e38076bf72d5cc6473b81ecd095aa2c8ab (patch) | |
tree | 708ca0d569c0e2a2905a51bb8fd84fc7e611ce48 /fc-cache | |
parent | abc723366d692df2210346e0d4d3c5686e22c3ef (diff) | |
download | fontconfig-b368a0e38076bf72d5cc6473b81ecd095aa2c8ab.tar.gz |
Fix 'meson install' when cross compiling
Prevent execution of target's fc-cache on host when installing
Diffstat (limited to 'fc-cache')
-rw-r--r-- | fc-cache/meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
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 |