autofdo: enable llvm profiles, upstream bug https://github.com/google/autofdo/issues/55

This commit is contained in:
blshkv 2018-01-28 08:46:29 +08:00
parent 91c06c210b
commit a2310afde8
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 1536 additions and 3 deletions

View file

@ -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
}

View 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