public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ilbc] rawhide: Add loongarch support.
@ 2026-07-02 20:12 Sun Haiyong
0 siblings, 0 replies; only message in thread
From: Sun Haiyong @ 2026-07-02 20:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ilbc
Branch : rawhide
Commit : fc966265eb269130e1eb4d7d2b138cc0bebcb6da
Author : Sun Haiyong <sunhaiyong@zdbr.net>
Date : 2026-06-24T17:39:06+08:00
Stats : +38/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ilbc/c/fc966265eb269130e1eb4d7d2b138cc0bebcb6da?branch=rawhide
Log:
Add loongarch support.
Add preprocessor support for loongarch architectures
---
diff --git a/ilbc-loongarch.patch b/ilbc-loongarch.patch
new file mode 100644
index 0000000..6ec895f
--- /dev/null
+++ b/ilbc-loongarch.patch
@@ -0,0 +1,33 @@
+From 1cee903f9fd7d13556801f4fdbbf9c82518641e0 Mon Sep 17 00:00:00 2001
+From: Sun Haiyong <sunhaiyong@zdbr.net>
+Date: Wed, 24 Jun 2026 17:31:14 +0800
+Subject: [PATCH] Add preprocessor support for loongarch architectures
+
+__loongarch__ and __loongarch_grlen are defined by
+https://github.com/loongson/la-toolchain-conventions#cc-preprocessor-built-in-macro-definitions
+---
+ rtc_base/system/arch.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/rtc_base/system/arch.h b/rtc_base/system/arch.h
+index be2367b85f..d036fe8424 100644
+--- a/rtc_base/system/arch.h
++++ b/rtc_base/system/arch.h
+@@ -73,6 +73,14 @@
+ #elif defined(__riscv) && __riscv_xlen == 32
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif defined(__loongarch__) && __loongarch_grlen == 64
++#define WEBRTC_ARCH_LOONGARCH_FAMILY
++#define WEBRTC_ARCH_64_BITS
++#define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif defined(__loongarch__) && __loongarch_grlen == 32
++#define WEBRTC_ARCH_LOONGARCH_FAMILY
++#define WEBRTC_ARCH_32_BITS
++#define WEBRTC_ARCH_LITTLE_ENDIAN
+ #elif defined(__pnacl__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
+--
+2.48.1
+
diff --git a/ilbc.spec b/ilbc.spec
index 8eef957..f12bff1 100644
--- a/ilbc.spec
+++ b/ilbc.spec
@@ -1,13 +1,14 @@
Name: ilbc
Summary: Internet Low Bitrate Codec
Version: 3.0.4
-Release: 19%{?dist}
+Release: 20%{?dist}
License: BSD-3-Clause
URL: https://github.com/TimothyGu/libilbc
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: %{name}-flags.patch
Patch1: %{name}-s390.patch
+Patch2: %{name}-loongarch.patch
BuildRequires: abseil-cpp-devel
BuildRequires: cmake
@@ -59,6 +60,9 @@ rm -fr %{buildroot}%{_docdir}/libilbc
%{_libdir}/lib%{name}.so
%changelog
+* Wed Jun 24 2026 Sun Haiyong <sunhaiyong@zdbr.net> - 3.0.4-20
+- Add loongarch support.
+
* Wed Jan 28 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.4-19
- Rebuilt for abseil-cpp 20260107.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-02 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-02 20:12 [rpms/ilbc] rawhide: Add loongarch support Sun Haiyong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox