diff --git a/Add-support-of-loongarch64.patch b/Add-support-of-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..bb1071327314f9573a2fef16b64b43996c65413a --- /dev/null +++ b/Add-support-of-loongarch64.patch @@ -0,0 +1,22 @@ +From 808bc202fc13e85a7948db0d7fb58f0f051200b1 Mon Sep 17 00:00:00 2001 +From: imaiguo +Date: Wed, 23 Feb 2022 22:56:32 +0800 +Subject: [PATCH] Add support of loongarch64 (#1110) + +--- + absl/debugging/internal/examine_stack.cc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc +index 589a3ef36..2fbfea8e5 100644 +--- a/absl/debugging/internal/examine_stack.cc ++++ b/absl/debugging/internal/examine_stack.cc +@@ -82,6 +82,8 @@ void* GetProgramCounter(void* vuc) { + return reinterpret_cast(context->uc_mcontext.gregs[16]); + #elif defined(__e2k__) + return reinterpret_cast(context->uc_mcontext.cr0_hi); ++#elif defined(__loongarch__) ++ return reinterpret_cast(context->uc_mcontext.__pc); + #else + #error "Undefined Architecture." + #endif diff --git a/abseil-cpp.spec b/abseil-cpp.spec index fceb2d0699254c0ed55ad2469e564bd49de898c7..f573a918ba7ddb99b6c45276d552a1551ba0880d 100644 --- a/abseil-cpp.spec +++ b/abseil-cpp.spec @@ -6,13 +6,14 @@ Name: abseil-cpp Version: 20210324.2 -Release: 1 +Release: 2 Summary: C++ Common Libraries License: ASL 2.0 URL: https://abseil.io Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz - +#https://github.com/abseil/abseil-cpp/commit/808bc202fc13e85a7948db0d7fb58f0f051200b1 +Patch0: Add-support-of-loongarch64.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: make @@ -61,5 +62,8 @@ Development headers for %{name} %{_libdir}/pkgconfig/*.pc %changelog +* Mon Apr 11 2022 liyanan - 20210324.2-2 +- Add support of loongarch64 + * Wed Jun 23 2021 gaihuiying - 20210324.2-1 - package init