mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 16:46:46 +02:00
22 lines
879 B
Diff
22 lines
879 B
Diff
diff --git a/hscript/meta.cc b/hscript/meta.cc
|
|
index 42c5d54..c74590d 100644
|
|
--- a/hscript/meta.cc
|
|
+++ b/hscript/meta.cc
|
|
@@ -170,7 +170,7 @@ bool Hostname::execute() const {
|
|
|
|
static std::set<std::string> valid_arches = {
|
|
"aarch64", "aarch64_be", "alpha", "armel", "armhf", "armv7",
|
|
- "m68k", "mips", "mips64", "mipsel", "mips64el",
|
|
+ "m68k", "mips", "mips64", "mipsel", "mips64el", "loongarch64",
|
|
"pmmx", "ppc", "ppc64",
|
|
"riscv", "riscv64",
|
|
"s390x", "sparc", "sparc64",
|
|
@@ -721,6 +721,8 @@ const std::string my_arch(const Horizon::Script *script) {
|
|
return "riscv";
|
|
# elif defined(__riscv) && __riscv_xlen == 64
|
|
return "riscv64";
|
|
+# elif defined(__loongarch64)
|
|
+ return "loongarch64";
|
|
# elif defined(__mips64)
|
|
# if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
return "mips64el";
|