mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-25 16:46:52 +02:00
tests: Work around Meson bug with using exe_wrapper
Do not use can_run_host_binaries() as it returns true even though custom_target() does not currently correctly wrap target-built tool binaries with exe_wrapper so they can be run on the host. See https://github.com/mesonbuild/meson/issues/11029
This commit is contained in:
parent
84284521b2
commit
a9fa7589c6
@ -700,7 +700,9 @@ if installed_tests_enabled
|
|||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if meson.can_run_host_binaries()
|
# FIXME: Work around Meson not automatically using exe_wrapper around glib_compile_resources
|
||||||
|
# https://github.com/mesonbuild/meson/issues/11029
|
||||||
|
if not meson.is_cross_build()
|
||||||
|
|
||||||
resource_plugin = []
|
resource_plugin = []
|
||||||
compiler_type = '--compiler=@0@'.format(cc.get_id())
|
compiler_type = '--compiler=@0@'.format(cc.get_id())
|
||||||
|
@ -431,7 +431,9 @@ foreach test_name, extra_args : python_tests
|
|||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
# some testing of gtester functionality
|
# some testing of gtester functionality
|
||||||
if meson.can_run_host_binaries() and host_system != 'windows'
|
# FIXME: Work around Meson not automatically using exe_wrapper around gtester
|
||||||
|
# https://github.com/mesonbuild/meson/issues/11029
|
||||||
|
if not meson.is_cross_build() and host_system != 'windows'
|
||||||
xmllint = find_program('xmllint', required: false)
|
xmllint = find_program('xmllint', required: false)
|
||||||
if xmllint.found()
|
if xmllint.found()
|
||||||
tmpsample_xml = custom_target('tmpsample.xml',
|
tmpsample_xml = custom_target('tmpsample.xml',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user