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

Issue 2092623002: GN: Don't define argument overrides globally (Closed)

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

Description

GN: Don't define argument overrides globally Previously, argument overrides (set via "gn args" or toolchain_args()) were global, even though their default values (set inside declare_args()) were set locally and thus only available to the file that set them, plus any file that imported it. Now, argument overrides are always applied locally, at the end of the declare_args() block. This ensures that argument defaults and overrides behave in the same way. BUG=619963 Committed: https://crrev.com/5662a8082448584fd3d77f0dba03759b2163e8e5 Cr-Commit-Position: refs/heads/master@{#404746}

Patch Set 1 #

Patch Set 2 : Support toolchain overrides and system vars #

Total comments: 2

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -13 lines) Patch
M tools/gn/args.h View 1 2 4 chunks +14 lines, -5 lines 0 comments Download
M tools/gn/args.cc View 1 2 6 chunks +54 lines, -8 lines 0 comments Download
M tools/gn/args_unittest.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
timn
4 years, 6 months ago (2016-06-22 23:35:49 UTC) #2
brettw
What's the reason this doesn't apply to toolchain overrides? It would be nice if the ...
4 years, 6 months ago (2016-06-23 22:51:44 UTC) #3
brettw
I'm remembering this more now. The toolchain issue is what stopped me from fixing this ...
4 years, 6 months ago (2016-06-23 23:09:01 UTC) #4
timn
On 2016/06/23 23:09:01, brettw wrote: > I'm remembering this more now. The toolchain issue is ...
4 years, 6 months ago (2016-06-23 23:20:14 UTC) #5
timn
toolchain overrides are now supported as well.
4 years, 6 months ago (2016-06-24 00:09:08 UTC) #6
brettw
Sorry this fell off my list, will get to it after the US holiday.
4 years, 5 months ago (2016-07-04 01:01:40 UTC) #8
brettw
Thanks! Sorry this took so long. I have some minor comments before checkin. LGTM with ...
4 years, 5 months ago (2016-07-11 19:42:30 UTC) #9
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/2092623002/40001
4 years, 5 months ago (2016-07-11 22:30:55 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-12 00:08:57 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-12 00:09:16 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-07-12 00:11:34 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5662a8082448584fd3d77f0dba03759b2163e8e5
Cr-Commit-Position: refs/heads/master@{#404746}

Powered by Google App Engine
This is Rietveld 408576698