# detect_cpu_family() is called from machine_info_can_run() without any compiler, # do it will incorrectly detect always mips on mips64 cpu. # As a temporary workaround, check also that __mips__ is defined before checking __mips64. # See https://github.com/mesonbuild/meson/issues/12017 --- meson-1.2.0/mesonbuild/environment.py.orig 2023-07-16 23:21:45.000000000 +0200 +++ meson-1.2.0/mesonbuild/environment.py 2023-07-29 02:12:41.712322420 +0200 @@ -342,8 +342,9 @@ # MIPS64 is able to run MIPS32 code natively, so there is a chance that # such mixture mentioned above exists. elif trial == 'mips64': - if not any_compiler_has_define(compilers, '__mips64'): - trial = 'mips' + if any_compiler_has_define(compilers, '__mips__'): + if not any_compiler_has_define(compilers, '__mips64'): + trial = 'mips' if trial not in known_cpu_families: mlog.warning(f'Unknown CPU family {trial!r}, please report this at '