Pass 'mipsel' as arch to m2c for le mips arches (#1395)

This commit is contained in:
Mark Street
2024-12-08 22:03:46 +00:00
committed by GitHub
parent a5249f922c
commit 3cfbcdeedc

View File

@@ -18,7 +18,9 @@ class M2CError(Exception):
class M2CWrapper:
@staticmethod
def get_triple(compiler: Compiler, arch: str) -> str:
if "mips" in arch:
if "mipse" in arch:
t_arch = "mipsel"
elif "mips" in arch:
t_arch = "mips"
elif "ppc" in arch:
t_arch = "ppc"