Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Issue 2219953002: Use new toolchain_args variable in GN (Closed)

Created:
4 years, 4 months ago by brettw
Modified:
4 years, 4 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@toolchain_args
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use new toolchain_args variable in GN. toolchain_args is changing from a function call to a scope that can be passed around. Pipe these args through the various toolchain templates. This adds complexity in some cases, but it eliminates the need for the toolchain templates to know about every build flag they might ever be called with. BUG=634446 Committed: https://crrev.com/3c38c5cdab9e6fc35852ae79be5351be2bd6d49e Cr-Commit-Position: refs/heads/master@{#410853}

Patch Set 1 #

Patch Set 2 : Format #

Patch Set 3 : Merge remote-tracking branch 'origin/master' into args_impl #

Patch Set 4 : . #

Patch Set 5 : Fixes #

Patch Set 6 : fix_win #

Patch Set 7 : fix_and_merge #

Patch Set 8 : v8 #

Total comments: 10

Patch Set 9 : PTAL #

Patch Set 10 : Merge remote-tracking branch 'origin/master' into args_impl #

Total comments: 2

Patch Set 11 : wrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -372 lines) Patch
M build/toolchain/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -13 lines 0 comments Download
M build/toolchain/cc_wrapper.gni View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M build/toolchain/cros/BUILD.gn View 1 2 3 4 5 chunks +40 lines, -37 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 3 4 5 6 7 8 5 chunks +92 lines, -117 lines 0 comments Download
M build/toolchain/goma.gni View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M build/toolchain/linux/BUILD.gn View 1 5 chunks +62 lines, -36 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 3 4 5 6 7 8 9 3 chunks +71 lines, -40 lines 0 comments Download
M build/toolchain/nacl/BUILD.gn View 1 2 3 8 chunks +25 lines, -11 lines 0 comments Download
M build/toolchain/nacl_toolchain.gni View 2 chunks +10 lines, -22 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 8 chunks +104 lines, -93 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 62 (43 generated)
brettw
.
4 years, 4 months ago (2016-08-05 23:01:28 UTC) #2
brettw
This was much harder than I expected!
4 years, 4 months ago (2016-08-05 23:02:56 UTC) #7
brettw
Fixes
4 years, 4 months ago (2016-08-05 23:15:25 UTC) #10
brettw
fix_win
4 years, 4 months ago (2016-08-05 23:29:32 UTC) #15
brettw
fix_and_merge
4 years, 4 months ago (2016-08-08 17:18:32 UTC) #20
brettw
v8
4 years, 4 months ago (2016-08-08 21:38:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2219953002/140001
4 years, 4 months ago (2016-08-08 21:39:05 UTC) #27
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 4 months ago (2016-08-08 21:39:07 UTC) #29
Dirk Pranke
I'm not quite sure I understand how everything hangs together yet, and I'd like to ...
4 years, 4 months ago (2016-08-08 23:28:39 UTC) #34
brettw
PTAL
4 years, 4 months ago (2016-08-09 17:26:16 UTC) #35
brettw
https://codereview.chromium.org/2219953002/diff/140001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/2219953002/diff/140001/build/toolchain/gcc_toolchain.gni#newcode113 build/toolchain/gcc_toolchain.gni:113: target_cpu = target_cpu On 2016/08/08 23:28:39, Dirk Pranke wrote: ...
4 years, 4 months ago (2016-08-09 17:26:29 UTC) #37
brettw
https://codereview.chromium.org/2219953002/diff/140001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/2219953002/diff/140001/build/toolchain/gcc_toolchain.gni#newcode113 build/toolchain/gcc_toolchain.gni:113: target_cpu = target_cpu If you're curious why this forwarding ...
4 years, 4 months ago (2016-08-09 17:28:31 UTC) #39
brettw
https://codereview.chromium.org/2219953002/diff/140001/build/toolchain/gcc_toolchain.gni File build/toolchain/gcc_toolchain.gni (right): https://codereview.chromium.org/2219953002/diff/140001/build/toolchain/gcc_toolchain.gni#newcode113 build/toolchain/gcc_toolchain.gni:113: target_cpu = target_cpu Dependent patch to remove these: https://codereview.chromium.org/2229063002/
4 years, 4 months ago (2016-08-09 18:14:01 UTC) #44
Dirk Pranke
We might want to fix the android x64 thing first in a different CL to ...
4 years, 4 months ago (2016-08-09 19:18:18 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2219953002/200001
4 years, 4 months ago (2016-08-09 22:16:29 UTC) #56
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-09 22:21:22 UTC) #58
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/3c38c5cdab9e6fc35852ae79be5351be2bd6d49e Cr-Commit-Position: refs/heads/master@{#410853}
4 years, 4 months ago (2016-08-09 22:23:34 UTC) #60
stevenjb
On 2016/08/09 22:23:34, commit-bot: I haz the power wrote: > Patchset 11 (id:??) landed as ...
4 years, 4 months ago (2016-08-09 23:49:05 UTC) #61
Dirk Pranke
4 years, 4 months ago (2016-08-10 01:53:27 UTC) #62
Message was sent while issue was closed.
On 2016/08/09 23:49:05, stevenjb wrote:
> On 2016/08/09 22:23:34, commit-bot: I haz the power wrote:
> > Patchset 11 (id:??) landed as
> > https://crrev.com/3c38c5cdab9e6fc35852ae79be5351be2bd6d49e
> > Cr-Commit-Position: refs/heads/master@{#410853}
> 
> On Chrome OS I am getting:
> 
> ERROR at //build/toolchain/cros/BUILD.gn:125:24: Build argument has no effect.
>     v8_toolchain_cpu = v8_target_cpu
>                        ^------------
> The variable "v8_toolchain_cpu" was set as a build argument
> but never appeared in a declare_args() block in any buildfile.

Yup, this actually shows up in

https://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-g...
(the tryjob on this CL)
but this is not a fatal error, unfortunately.

I think https://codereview.chromium.org/2231643002/ should fix this.

Powered by Google App Engine
This is Rietveld 408576698