mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-util/ccache: use ${CHOST}-objdump
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="fast compiler cache"
|
||||
HOMEPAGE="https://ccache.dev/"
|
||||
SRC_URI="https://github.com/ccache/ccache/releases/download/v${PV}/ccache-${PV}.tar.xz"
|
||||
@@ -26,6 +28,7 @@ RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.5-nvcc-test.patch
|
||||
"${FILESDIR}"/${P}-objdump.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -34,6 +37,9 @@ src_prepare() {
|
||||
sed \
|
||||
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||
"${FILESDIR}"/ccache-config-3 > ccache-config || die
|
||||
|
||||
# mainly used in tests
|
||||
tc-export OBJDUMP
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
15
dev-util/ccache/files/ccache-3.7.10-objdump.patch
Normal file
15
dev-util/ccache/files/ccache-3.7.10-objdump.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Allow ${CHOST}-objdump (or any other override)
|
||||
--- a/test/suites/debug_prefix_map.bash
|
||||
+++ b/test/suites/debug_prefix_map.bash
|
||||
@@ -24,9 +24,9 @@ objdump_cmd() {
|
||||
if $HOST_OS_APPLE; then
|
||||
xcrun dwarfdump -r0 $1
|
||||
elif $HOST_OS_FREEBSD; then
|
||||
- objdump -W $1
|
||||
+ ${OBJDUMP-objdump} -W $1
|
||||
else
|
||||
- objdump -g $1
|
||||
+ ${OBJDUMP-objdump} -g $1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user