Skip to content

Commit 4096637

Browse files
smcvmatoro
authored andcommitted
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 <[email protected]>
1 parent 21ae1bf commit 4096637

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mesonbuild/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ def machine_info_can_run(machine_info: MachineInfo):
469469
return \
470470
(machine_info.cpu_family == true_build_cpu_family) or \
471471
((true_build_cpu_family == 'x86_64') and (machine_info.cpu_family == 'x86')) or \
472+
((true_build_cpu_family == 'mips64') and (machine_info.cpu_family == 'mips')) or \
472473
((true_build_cpu_family == 'aarch64') and (machine_info.cpu_family == 'arm'))
473474

474475
class Environment:

0 commit comments

Comments
 (0)