- change cc_can_run to can_run_host_binaries (per upcoming meson change)
]
# Don't build babl ref if cannot run compiled objects in this env
-if env_bin.found() and cc_can_run
+if env_bin.found() and can_run_host_binaries
index_html_tmp = custom_target('index.html.tmp',
input : babl_html_dump,
output:'index.html.tmp',
build_os.startswith('cygwin') or
build_os.startswith('windows'))
-# Only run cross compile objects if we have exe wrapper
-cc_can_run = not meson.is_cross_build() or meson.has_exe_wrapper()
+# Only try to run compiled programs if native compile or cross-compile
+# and have exe wrapper. If we don't need a wrapper (e.g. 32 bit build in
+# 64-bit environment) then set proprty has_exe_wrapper=true in cross
+# file
+can_run_host_binaries = meson.has_exe_wrapper()
+
################################################################################
# Compiler arguments