From 744dac8eb17bba89242b74181c28523974e7e88c Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Thu, 14 Dec 2023 10:47:13 +0000
Subject: [PATCH] add loongarch64 support for libwebrtc

---
 third_party/libwebrtc/build/build_config.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/third_party/libwebrtc/build/build_config.h b/third_party/libwebrtc/build/build_config.h
index c39ae9da50..4c44dbae12 100644
--- a/third_party/libwebrtc/build/build_config.h
+++ b/third_party/libwebrtc/build/build_config.h
@@ -201,6 +201,10 @@
 #define ARCH_CPU_RISCV64 1
 #define ARCH_CPU_64_BITS 1
 #define ARCH_CPU_LITTLE_ENDIAN 1
+#elif defined(__loongarch64)
+#define ARCH_CPU_LOONGARCH64 1
+#define ARCH_CPU_64_BITS 1
+#define ARCH_CPU_LITTLE_ENDIAN 1
 #elif defined(__sparc__)
 #if defined(__LP64__)
 #define ARCH_CPU_SPARC64 1
-- 
2.41.0


