From 88d074c0e0a27c1655362f3cd894bf436148ee83 Mon Sep 17 00:00:00 2001 From: YalingFang Date: Fri, 5 Jan 2024 08:14:12 +0000 Subject: Add support for Loongarch --- contrib/depends/packages/openssl.mk | 1 + contrib/depends/toolchain.cmake.in | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'contrib/depends') diff --git a/contrib/depends/packages/openssl.mk b/contrib/depends/packages/openssl.mk index b35cf5e97..b124054d9 100644 --- a/contrib/depends/packages/openssl.mk +++ b/contrib/depends/packages/openssl.mk @@ -38,6 +38,7 @@ $(package)_config_opts_arm_android=--static android-arm $(package)_config_opts_aarch64_android=--static android-arm64 $(package)_config_opts_aarch64_darwin=darwin64-arm64-cc $(package)_config_opts_riscv64_linux=linux-generic64 +$(package)_config_opts_loongarch64_linux=linux-generic64 $(package)_config_opts_mipsel_linux=linux-generic32 $(package)_config_opts_mips_linux=linux-generic32 $(package)_config_opts_powerpc_linux=linux-generic32 diff --git a/contrib/depends/toolchain.cmake.in b/contrib/depends/toolchain.cmake.in index 6fe4618ae..d8c7dc926 100644 --- a/contrib/depends/toolchain.cmake.in +++ b/contrib/depends/toolchain.cmake.in @@ -144,6 +144,10 @@ if(ARCHITECTURE STREQUAL "riscv64") set(ARCH_ID "riscv64") set(ARCH "rv64gc") endif() +if(ARCHITECTURE STREQUAL "loongarch64") + set(ARCH_ID "loongarch64") + set(ARCH "loongarch") +endif() if(ARCHITECTURE STREQUAL "i686") SET(ARCH_ID "i386") -- cgit v1.2.3