diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-09-15 23:13:40 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-09-20 22:01:24 -0400 |
commit | d6ba7bef53246b8132d81b5ef0620e32b9fbcb89 (patch) | |
tree | 5a2f2eed4fcd5502628c3f2e80689dcbdb5e0664 /www-client | |
parent | sys-fs/fuse-exfat: remove old (diff) | |
download | gentoo-d6ba7bef53246b8132d81b5ef0620e32b9fbcb89.tar.gz gentoo-d6ba7bef53246b8132d81b5ef0620e32b9fbcb89.tar.bz2 gentoo-d6ba7bef53246b8132d81b5ef0620e32b9fbcb89.zip |
www-client/chromium: use custom toolchain for GN builds
Bug: https://bugs.gentoo.org/587408
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/chromium/chromium-55.0.2859.0.ebuild | 3 | ||||
-rw-r--r-- | www-client/chromium/files/toolchain/BUILD.gn | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/www-client/chromium/chromium-55.0.2859.0.ebuild b/www-client/chromium/chromium-55.0.2859.0.ebuild index f24323421c41..417fe55ecc16 100644 --- a/www-client/chromium/chromium-55.0.2859.0.ebuild +++ b/www-client/chromium/chromium-55.0.2859.0.ebuild @@ -536,6 +536,9 @@ src_configure() { # Make sure the build system will use the right tools, bug #340795. tc-export AR CC CXX NM + # Define a custom toolchain for GN + myconf_gn+=" custom_toolchain=\"${FILESDIR}/toolchain:default\"" + # Tools for building programs to be executed on the build system, bug #410883. if tc-is-cross-compiler; then export AR_host=$(tc-getBUILD_AR) diff --git a/www-client/chromium/files/toolchain/BUILD.gn b/www-client/chromium/files/toolchain/BUILD.gn new file mode 100644 index 000000000000..78f7b57e3be5 --- /dev/null +++ b/www-client/chromium/files/toolchain/BUILD.gn @@ -0,0 +1,19 @@ +import("//build/toolchain/gcc_toolchain.gni") + +gcc_toolchain("default") { + cc = getenv("CC") + cxx = getenv("CXX") + ar = getenv("AR") + nm = getenv("NM") + ld = cxx + + extra_cflags = getenv("CFLAGS") + extra_cppflags = getenv("CPPFLAGS") + extra_cxxflags = getenv("CXXFLAGS") + extra_ldflags = getenv("LDFLAGS") + + toolchain_args = { + current_cpu = current_cpu + current_os = current_os + } +} |