aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2023-08-05 11:13:53 +0100
committerEli Schwartz <eschwartz93@gmail.com>2023-08-06 02:32:25 -0400
commit2cf79c5062f553382b641f4ac8be897d532902aa (patch)
tree8e6fa373940ec4ba0309f6af6b82ce9c803715c6 /mesonbuild
parent432317bc6bbfa594bbaf99e13ccb840db3903568 (diff)
downloadmeson-2cf79c5062f553382b641f4ac8be897d532902aa.zip
meson-2cf79c5062f553382b641f4ac8be897d532902aa.tar.gz
meson-2cf79c5062f553382b641f4ac8be897d532902aa.tar.bz2
environment: Assume that mips64 can run 32-bit mips binaries
The relationship between mips64 and mips is similar to the relationship between x86_64 and x86. Representing it here is necessary so that we will not require an exe_wrapper when cross-compiling for 32-bit mips on mips64, or when a complete 32-bit mips user-space runs on a 64-bit kernel without using linux32 to alter uname(2) to pretend to be 32-bit. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/environment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 3ec7713..836963e 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -469,6 +469,7 @@ def machine_info_can_run(machine_info: MachineInfo):
return \
(machine_info.cpu_family == true_build_cpu_family) or \
((true_build_cpu_family == 'x86_64') and (machine_info.cpu_family == 'x86')) or \
+ ((true_build_cpu_family == 'mips64') and (machine_info.cpu_family == 'mips')) or \
((true_build_cpu_family == 'aarch64') and (machine_info.cpu_family == 'arm'))
class Environment: