www-client/chromium: wire-up cross-compile support
authorMike Gilbert <floppym@gentoo.org>
Mon, 19 Jun 2017 04:57:51 +0000 (00:57 -0400)
committerMike Gilbert <floppym@gentoo.org>
Mon, 19 Jun 2017 05:01:05 +0000 (01:01 -0400)
commit2dd4eba091de610ed6621df0b20daedc7c5c44c2
tree0cdff38e380bb7d2a8b06a76adc662821d84c03b
parentbe7285a362c306961074f7abe99e29b580e6bc15
www-client/chromium: wire-up cross-compile support

Cross-compiling still does not work, but this gets us closer.

- Build GN with the host (CBUILD) compiler, skip rebuild after bootstrap.
- Add a toolchain definition for the host (CBUILD) compiler.
- Set the host_toolchain option.
- Set the target_cpu option based on the target arch (CHOST).

The host_toolchain option is also set for native builds. This makes
clang work without setting clang_base_path.

Package-Manager: Portage-2.3.6_p7, Repoman-2.3.2_p75
www-client/chromium/chromium-61.0.3128.3.ebuild
www-client/chromium/files/toolchain/BUILD.gn