mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
autofdo: enable llvm profiles, upstream bug https://github.com/google/autofdo/issues/55
This commit is contained in:
parent
91c06c210b
commit
a2310afde8
3 changed files with 1536 additions and 3 deletions
|
|
@ -14,14 +14,22 @@ SLOT="0"
|
|||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=sys-devel/llvm-4.0.1:*
|
||||
DEPEND=">=sys-devel/llvm-5.0.1:*
|
||||
sys-devel/gcc:*"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/0.16_issue55.patch"
|
||||
"${FILESDIR}/72b7f86b920a35b02faed94afc685fd2d517fc78.patch"
|
||||
)
|
||||
|
||||
src_prepare(){
|
||||
#has Google forgot got change it?
|
||||
# sed -i 's|\[0.14\]|\[${PV}\]|' configure.ac
|
||||
sed -i 's|0.14|0.16|' configure.ac
|
||||
eautoreconf
|
||||
eapply_user
|
||||
}
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
econf --with-llvm
|
||||
}
|
||||
13
sys-devel/autofdo/files/0.16_issue55.patch
Normal file
13
sys-devel/autofdo/files/0.16_issue55.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- a/m4/ax_llvm.m4.orig 2017-07-12 02:48:46.000000000 +0800
|
||||
+++ b/m4/ax_llvm.m4 2018-01-28 07:58:23.669268374 +0800
|
||||
@@ -111,8 +111,10 @@
|
||||
LDFLAGS="$LDFLAGS_SAVED"
|
||||
if test "x$shared_mode" = "xstatic"; then
|
||||
AC_MSG_NOTICE([Using static LLVM libraries.])
|
||||
+ succeeded=yes
|
||||
elif test "x$shared_mode" = "xshared"; then
|
||||
AC_MSG_NOTICE([Using shared LLVM libraries. Setting -rpath to $rpath.])
|
||||
+ succeeded=yes
|
||||
else
|
||||
AC_MSG_ERROR([Could not determine whether to use shared or static LLVM libraries])
|
||||
fi
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue