summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2024-10-02 19:25:12 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2024-10-22 01:02:36 +0300
commit86f9fe4c9a825feb93ca4b2ecf701d0877120d06 (patch)
tree4aa13de9ec9ad8001cbb20985a6906282d4c6b07 /mesonbuild/scripts
parent851d866349b41533d57ef8a3c3e49f01f95680e3 (diff)
downloadmeson-86f9fe4c9a825feb93ca4b2ecf701d0877120d06.tar.gz
env2mfile: Automatically set exe_wrapper on Debian if possible
Recent versions of the architecture-properties package provide a cross-exe-wrapper package containing ${DEB_HOST_GNU_TYPE}-cross-exe-wrapper, which is currently a wrapper around qemu-user but could use different emulators on each architecture if it becomes necessary in the future. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'mesonbuild/scripts')
-rwxr-xr-xmesonbuild/scripts/env2mfile.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/scripts/env2mfile.py b/mesonbuild/scripts/env2mfile.py
index 2a366fd19..7896954fa 100755
--- a/mesonbuild/scripts/env2mfile.py
+++ b/mesonbuild/scripts/env2mfile.py
@@ -243,6 +243,13 @@ def dpkg_architecture_to_machine_info(output: str, options: T.Any) -> MachineInf
infos.binaries[tool] = locate_path("%s-%s" % (host_arch, tool))
except ValueError:
pass # optional
+ for tool, exe in [
+ ('exe_wrapper', 'cross-exe-wrapper'),
+ ]:
+ try:
+ infos.binaries[tool] = locate_path("%s-%s" % (host_arch, exe))
+ except ValueError:
+ pass
try:
infos.binaries['cups-config'] = locate_path("cups-config")
except ValueError: