commit: 284925796221ffcea6c748ad229cbe16799d192a
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 23 03:39:57 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Jun 23 03:41:28 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28492579
www-client/chromium: cross-compile mksnapshot
Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77
www-client/chromium/chromium-61.0.3128.3.ebuild | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/www-client/chromium/chromium-61.0.3128.3.ebuild
b/www-client/chromium/chromium-61.0.3128.3.ebuild
index 09e3875b0b4..4a2c2ada6f8 100644
--- a/www-client/chromium/chromium-61.0.3128.3.ebuild
+++ b/www-client/chromium/chromium-61.0.3128.3.ebuild
@@ -488,6 +488,7 @@ src_configure() {
if tc-is-cross-compiler; then
tc-export BUILD_{AR,CC,CXX,NM}
myconf_gn+=" host_toolchain=\"${FILESDIR}/toolchain:host\""
+ myconf_gn+="
v8_snapshot_toolchain=\"${FILESDIR}/toolchain:host\""
else
myconf_gn+=" host_toolchain=\"${FILESDIR}/toolchain:default\""
fi
@@ -534,8 +535,13 @@ src_compile() {
fi
# Build mksnapshot and pax-mark it.
- eninja -C out/Release mksnapshot || die
- pax-mark m out/Release/mksnapshot
+ if tc-is-cross-compiler; then
+ eninja -C out/Release host/mksnapshot || die
+ pax-mark m out/Release/host/mksnapshot
+ else
+ eninja -C out/Release mksnapshot || die
+ pax-mark m out/Release/mksnapshot
+ fi
# Even though ninja autodetects number of CPUs, we respect
# user's options, for debugging with -j 1 or any other reason.