python/meson: set needs_exe_wrapper=true only for Android targets

This commit is contained in:
Max Kellermann 2021-08-10 14:51:20 +02:00
parent b8eb9b466a
commit 1af8694ef6
1 changed files with 5 additions and 0 deletions

View File

@ -55,10 +55,15 @@ c_link_args = {repr(toolchain.ldflags.split() + toolchain.libs.split())}
cpp_args = {repr((toolchain.cppflags + ' ' + toolchain.cxxflags).split())}
cpp_link_args = {repr(toolchain.ldflags.split() + toolchain.libs.split())}
""")
if 'android' in toolchain.arch:
f.write("""
# Keep Meson from executing Android-x86 test binariees
needs_exe_wrapper = true
""")
f.write(f"""
[host_machine]
system = '{system}'
cpu_family = '{cpu_family}'