www-client/chromium: cross-compile mksnapshot
authorMike Gilbert <floppym@gentoo.org>
Fri, 23 Jun 2017 03:39:57 +0000 (23:39 -0400)
committerMike Gilbert <floppym@gentoo.org>
Fri, 23 Jun 2017 03:41:28 +0000 (23:41 -0400)
Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77

www-client/chromium/chromium-61.0.3128.3.ebuild

index 09e3875b0b4e7f63a2451f1aed8113eecac36821..4a2c2ada6f847ab0694c85c75f0661ef40250e24 100644 (file)
@@ -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.