Skip to content

Commit 081eca0

Browse files
authored
feat: add loongarch64 support (#112)
1 parent b5b2e9f commit 081eca0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

curl-static-cross.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ arch_variants() {
255255
OPENSSL_ARCH="linux-ppc64le" ;;
256256
powerpc) qemu_arch="ppc"
257257
OPENSSL_ARCH="linux-ppc" ;;
258+
loongarch64) qemu_arch="loongarch64"
259+
OPENSSL_ARCH="linux64-loongarch64" ;;
258260
esac
259261

260262
unset LD STRIP LDFLAGS
@@ -853,7 +855,10 @@ _arch_match() {
853855
}
854856

855857
_arch_valid() {
856-
local arch_x86_64="x86_64 aarch64 armv5 armv7 armv7l riscv64 s390x mips64 mips64el powerpc64le mipsel i686 mips powerpc"
858+
# Mapping of supported target architectures for different host platforms:
859+
# - When host is x86_64: supports building for x86_64, aarch64, i686, etc.
860+
# - When host is aarch64: supports building for x86_64, aarch64, etc.
861+
local arch_x86_64="x86_64 aarch64 armv5 armv7 armv7l riscv64 s390x mips64 mips64el powerpc64le mipsel i686 mips powerpc loongarch64"
857862
local arch_aarch64="x86_64 aarch64 armv5 armv7 armv7l riscv64 s390x mips64 mips64el powerpc64le mipsel"
858863

859864
if [ "${ARCH_HOST}" = "x86_64" ]; then

0 commit comments

Comments
 (0)