From 1af8694ef64c2791d060c13a41f4c74ac859ce75 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Tue, 10 Aug 2021 14:51:20 +0200
Subject: [PATCH] python/meson: set needs_exe_wrapper=true only for Android
 targets

---
 python/build/meson.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/python/build/meson.py b/python/build/meson.py
index 049b52251..25d09b7d2 100644
--- a/python/build/meson.py
+++ b/python/build/meson.py
@@ -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}'