1 |
commit: d6ba7bef53246b8132d81b5ef0620e32b9fbcb89 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 16 03:13:40 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 21 02:01:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ba7bef |
7 |
|
8 |
www-client/chromium: use custom toolchain for GN builds |
9 |
|
10 |
Bug: https://bugs.gentoo.org/587408 |
11 |
|
12 |
www-client/chromium/chromium-55.0.2859.0.ebuild | 3 +++ |
13 |
www-client/chromium/files/toolchain/BUILD.gn | 19 +++++++++++++++++++ |
14 |
2 files changed, 22 insertions(+) |
15 |
|
16 |
diff --git a/www-client/chromium/chromium-55.0.2859.0.ebuild b/www-client/chromium/chromium-55.0.2859.0.ebuild |
17 |
index f243234..417fe55 100644 |
18 |
--- a/www-client/chromium/chromium-55.0.2859.0.ebuild |
19 |
+++ b/www-client/chromium/chromium-55.0.2859.0.ebuild |
20 |
@@ -536,6 +536,9 @@ src_configure() { |
21 |
# Make sure the build system will use the right tools, bug #340795. |
22 |
tc-export AR CC CXX NM |
23 |
|
24 |
+ # Define a custom toolchain for GN |
25 |
+ myconf_gn+=" custom_toolchain=\"${FILESDIR}/toolchain:default\"" |
26 |
+ |
27 |
# Tools for building programs to be executed on the build system, bug #410883. |
28 |
if tc-is-cross-compiler; then |
29 |
export AR_host=$(tc-getBUILD_AR) |
30 |
|
31 |
diff --git a/www-client/chromium/files/toolchain/BUILD.gn b/www-client/chromium/files/toolchain/BUILD.gn |
32 |
new file mode 100644 |
33 |
index 00000000..78f7b57 |
34 |
--- /dev/null |
35 |
+++ b/www-client/chromium/files/toolchain/BUILD.gn |
36 |
@@ -0,0 +1,19 @@ |
37 |
+import("//build/toolchain/gcc_toolchain.gni") |
38 |
+ |
39 |
+gcc_toolchain("default") { |
40 |
+ cc = getenv("CC") |
41 |
+ cxx = getenv("CXX") |
42 |
+ ar = getenv("AR") |
43 |
+ nm = getenv("NM") |
44 |
+ ld = cxx |
45 |
+ |
46 |
+ extra_cflags = getenv("CFLAGS") |
47 |
+ extra_cppflags = getenv("CPPFLAGS") |
48 |
+ extra_cxxflags = getenv("CXXFLAGS") |
49 |
+ extra_ldflags = getenv("LDFLAGS") |
50 |
+ |
51 |
+ toolchain_args = { |
52 |
+ current_cpu = current_cpu |
53 |
+ current_os = current_os |
54 |
+ } |
55 |
+} |