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