summaryrefslogtreecommitdiff
path: root/dev-util/google-perftools/google-perftools-2.9.1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/google-perftools/google-perftools-2.9.1.ebuild')
-rw-r--r--dev-util/google-perftools/google-perftools-2.9.1.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/dev-util/google-perftools/google-perftools-2.9.1.ebuild b/dev-util/google-perftools/google-perftools-2.9.1.ebuild
index a1f7dcceb6c6..896b51dfd9c8 100644
--- a/dev-util/google-perftools/google-perftools-2.9.1.ebuild
+++ b/dev-util/google-perftools/google-perftools-2.9.1.ebuild
@@ -14,16 +14,21 @@ LICENSE="MIT"
SLOT="0/4"
# contains ASM code, with support for
# freebsd x86/amd64
-# linux x86/amd64/ppc/ppc64/arm
+# linux amd64/arm/arm64/ppc/ppc64/riscv/x86
# OSX ppc/amd64
# AIX ppc/ppc64
-KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
IUSE="largepages largepages64k +debug minimal optimisememory test static-libs"
RESTRICT="!test? ( test )"
-DEPEND="!ppc64? ( sys-libs/libunwind )"
+# TODO: remove the riscv special case once either libunwind has begun supporting this arch
+# or this package allows using llvm-libunwind for other arches
+DEPEND="!ppc64? (
+ riscv? ( sys-libs/llvm-libunwind )
+ !riscv? ( sys-libs/libunwind )
+)"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"