41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From 4eb65cf5194bd556baff817842d1f1860cec6cf9 Mon Sep 17 00:00:00 2001
|
|
From: li weigang <weigangli99@gmail.com>
|
|
Date: Wed, 18 Oct 2023 15:57:26 +0800
|
|
Subject: [PATCH] add sw_64 architecture
|
|
|
|
---
|
|
meson.build | 1 +
|
|
webrtc/rtc_base/system/arch.h | 4 ++++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
diff --git a/meson.build b/meson.build
|
|
index 3843e92..f92813a 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -112,6 +112,7 @@ have_arm = false
|
|
have_armv7 = false
|
|
have_neon = false
|
|
have_mips = false
|
|
+have_sw_64 = false
|
|
have_mips64 = false
|
|
have_x86 = false
|
|
have_avx2 = false
|
|
diff --git a/webrtc/rtc_base/system/arch.h b/webrtc/rtc_base/system/arch.h
|
|
index aee3756..4e27f12 100644
|
|
--- a/webrtc/rtc_base/system/arch.h
|
|
+++ b/webrtc/rtc_base/system/arch.h
|
|
@@ -23,6 +23,10 @@
|
|
#define WEBRTC_ARCH_X86_64
|
|
#define WEBRTC_ARCH_64_BITS
|
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
+#elif defined(_M_SW_64) || defined(__sw_64__)
|
|
+#define WEBRTC_ARCH_SW_64_FAMILY
|
|
+#define WEBRTC_ARCH_64_BITS
|
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
|
#elif defined(_M_ARM64) || defined(__aarch64__)
|
|
#define WEBRTC_ARCH_ARM_FAMILY
|
|
#define WEBRTC_ARCH_64_BITS
|
|
--
|
|
2.20.1
|
|
|