mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-cpp/abseil-cpp: fix build on loong
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
This commit is contained in:
@@ -38,6 +38,7 @@ RESTRICT="!test? ( test )"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-20211102.0-fix-cuda-nvcc-build.patch"
|
||||
"${FILESDIR}/${PN}-20211102.0-r2-cuda11.6-compile-fix.patch"
|
||||
"${FILESDIR}/${PN}-20211102.0-r2-loong.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
https://github.com/abseil/abseil-cpp/commit/808bc202fc13e85a7948db0d7fb58f0f051200b1
|
||||
|
||||
From 808bc202fc13e85a7948db0d7fb58f0f051200b1 Mon Sep 17 00:00:00 2001
|
||||
From: imaiguo <maaiguo@uniontech.com>
|
||||
Date: Wed, 23 Feb 2022 22:56:32 +0800
|
||||
Subject: [PATCH] Add support of loongarch64 (#1110)
|
||||
|
||||
--- 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<void*>(context->uc_mcontext.gregs[16]);
|
||||
#elif defined(__e2k__)
|
||||
return reinterpret_cast<void*>(context->uc_mcontext.cr0_hi);
|
||||
+#elif defined(__loongarch__)
|
||||
+ return reinterpret_cast<void*>(context->uc_mcontext.__pc);
|
||||
#else
|
||||
#error "Undefined Architecture."
|
||||
#endif
|
||||
Reference in New Issue
Block a user