at master 2.1 kB view raw
1From 837d5d183588bfd42fc581a415714972f758b83d Mon Sep 17 00:00:00 2001 2From: xiaoxiaoafeifei <zhailiangliang@loongson.cn> 3Date: Tue, 12 Aug 2025 16:11:35 +0200 4Subject: [PATCH 3/3] Add support for the LoongArch64 architecture (#4386) 5 6--- 7 aconfigure | 3 +++ 8 aconfigure.ac | 3 +++ 9 third_party/webrtc/src/webrtc/typedefs.h | 3 +++ 10 3 files changed, 9 insertions(+) 11 12diff --git a/aconfigure b/aconfigure 13index 09cd7b901..d551e6338 100755 14--- a/aconfigure 15+++ b/aconfigure 16@@ -9114,6 +9114,9 @@ $as_echo "Checking if libwebrtc is disabled...no" >&6; } 17 ac_webrtc_instset=neon 18 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64" 19 ;; 20+ loongarch*) 21+ ac_webrtc_instset=generic 22+ ;; 23 riscv*) 24 ac_webrtc_instset=generic 25 ;; 26diff --git a/aconfigure.ac b/aconfigure.ac 27index 81be8ed7b..cb4552ab5 100644 28--- a/aconfigure.ac 29+++ b/aconfigure.ac 30@@ -2154,6 +2154,9 @@ AC_ARG_ENABLE(libwebrtc, 31 ac_webrtc_instset=generic 32 fi 33 ;; 34+ loongarch*) 35+ ac_webrtc_instset=generic 36+ ;; 37 riscv*) 38 ac_webrtc_instset=generic 39 ;; 40diff --git a/third_party/webrtc/src/webrtc/typedefs.h b/third_party/webrtc/src/webrtc/typedefs.h 41index d8d9813fe..2493f77cd 100644 42--- a/third_party/webrtc/src/webrtc/typedefs.h 43+++ b/third_party/webrtc/src/webrtc/typedefs.h 44@@ -54,6 +54,9 @@ 45 #else 46 #define WEBRTC_ARCH_32_BITS 47 #endif 48+#elif defined(__loongarch64) || defined(__loongarch64__) 49+#define WEBRTC_ARCH_LITTLE_ENDIAN 50+#define WEBRTC_ARCH_64_BITS 51 #else 52 #error Please add support for your architecture in typedefs.h 53 #endif 54-- 552.50.1 56