aports/testing/horizon/mips64-host.patch
2020-07-22 06:19:29 -06:00

16 lines
536 B
Diff

diff --git a/hscript/meta.cc b/hscript/meta.cc
index d79f3f5..fe8931d 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -722,6 +722,10 @@ const std::string my_arch(const Horizon::Script *script) {
return "pmmx";
# elif defined(__x86_64__)
return "x86_64";
+# elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+ return "mips64";
+# elif defined(__mips64) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ return "mips64le";
# else
# error Unknown architecture.
# endif