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

Issue 1466173002: Fix the `sizes` regressions in Linux GN. (Closed)

Created:
5 years ago by Dirk Pranke
Modified:
5 years ago
Reviewers:
danakj, Nico, brettw
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, Dai Mikurube (NOT FULLTIME), vmpstr+watch_chromium.org, wfh+watch_chromium.org, jam, darin-cc_chromium.org, tfarina, chromium-apps-reviews_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@linux_x64_2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the `sizes` regressions in Linux GN. The Linux GN build introduces a bunch of static initializers into Chrome as a result of linking a number of components as source_sets instead of static libraries. This CL flips the relevant components back to static libraries accordingly until we can actually get rid of the statics. R=thakis@chromium.org, brettw@chromium.org BUG=559766 Committed: https://crrev.com/cbe5b1fc629ab93631e1ba069c05936576ca93e9 Cr-Commit-Position: refs/heads/master@{#364845}

Patch Set 1 #

Patch Set 2 : remove gin, update expectations #

Total comments: 2

Patch Set 3 : add TODOs #

Total comments: 6

Patch Set 4 : just switch //base/allocator:tcmalloc and //components/translate/content/browser to static libs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M base/allocator/BUILD.gn View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M components/translate/content/browser/BUILD.gn View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf_expectations/perf_expectations.json View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (15 generated)
Dirk Pranke
Please take a look. I think with this plus the fix to pdfium in https://codereview.chromium.org/1510353003/ ...
5 years ago (2015-12-09 23:14:16 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466173002/20001
5 years ago (2015-12-09 23:16:18 UTC) #6
danakj
https://codereview.chromium.org/1466173002/diff/20001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/20001/cc/BUILD.gn#newcode7 cc/BUILD.gn:7: static_library("cc") { is there a list of the static ...
5 years ago (2015-12-09 23:26:50 UTC) #7
Nico
On 2015/12/09 23:26:50, danakj (behind on reviews) wrote: > https://codereview.chromium.org/1466173002/diff/20001/cc/BUILD.gn > File cc/BUILD.gn (right): > ...
5 years ago (2015-12-09 23:30:27 UTC) #8
Dirk Pranke
I will add TODOs. https://codereview.chromium.org/1466173002/diff/20001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/20001/cc/BUILD.gn#newcode7 cc/BUILD.gn:7: static_library("cc") { On 2015/12/09 23:26:50, ...
5 years ago (2015-12-09 23:35:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466173002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466173002/40001
5 years ago (2015-12-10 02:45:42 UTC) #12
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years ago (2015-12-10 02:45:44 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466173002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466173002/40001
5 years ago (2015-12-10 02:49:47 UTC) #16
Nico
Lgtm with comment. https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn#newcode9 cc/BUILD.gn:9: # there are static initializers that ...
5 years ago (2015-12-10 03:10:46 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/80421)
5 years ago (2015-12-10 04:41:32 UTC) #19
brettw
https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn#newcode9 cc/BUILD.gn:9: # there are static initializers that get accidentally linked ...
5 years ago (2015-12-10 18:48:36 UTC) #20
Dirk Pranke
https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn#newcode9 cc/BUILD.gn:9: # there are static initializers that get accidentally linked ...
5 years ago (2015-12-10 18:51:01 UTC) #21
Nico
https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn#newcode9 cc/BUILD.gn:9: # there are static initializers that get accidentally linked ...
5 years ago (2015-12-10 18:52:04 UTC) #22
brettw
On 2015/12/10 18:51:01, Dirk Pranke wrote: > https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn > File cc/BUILD.gn (right): > > https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn#newcode9 ...
5 years ago (2015-12-10 18:53:54 UTC) #23
Nico
alternatively you could let "component" expand to "static_library" instead of "source_set" until these are fixed ...
5 years ago (2015-12-10 18:56:23 UTC) #24
brettw
On 2015/12/10 18:56:23, Nico wrote: > alternatively you could let "component" expand to "static_library" instead ...
5 years ago (2015-12-10 19:02:34 UTC) #25
Nico
On 2015/12/10 19:02:34, brettw wrote: > On 2015/12/10 18:56:23, Nico wrote: > > alternatively you ...
5 years ago (2015-12-10 19:07:08 UTC) #26
brettw
On 2015/12/10 19:07:08, Nico wrote: > On 2015/12/10 19:02:34, brettw wrote: > > On 2015/12/10 ...
5 years ago (2015-12-10 19:12:54 UTC) #27
Nico
On 2015/12/10 19:12:54, brettw wrote: > On 2015/12/10 19:07:08, Nico wrote: > > On 2015/12/10 ...
5 years ago (2015-12-10 19:20:17 UTC) #28
danakj
https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/1466173002/diff/40001/cc/BUILD.gn#newcode9 cc/BUILD.gn:9: # there are static initializers that get accidentally linked ...
5 years ago (2015-12-10 19:20:31 UTC) #30
Dirk Pranke
On 2015/12/10 19:20:31, danakj (behind on reviews) wrote: > cc/ is fixed by https://codereview.chromium.org/1515753003/ I ...
5 years ago (2015-12-10 19:50:42 UTC) #31
brettw
Yes, source_set -> static library is OK workaround.
5 years ago (2015-12-10 21:01:03 UTC) #32
Nico
Ok, the gn build is now down to 7 files with initializers, 2 more than ...
5 years ago (2015-12-11 19:04:37 UTC) #33
brettw
lgtm
5 years ago (2015-12-11 22:27:50 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1466173002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1466173002/60001
5 years ago (2015-12-11 22:39:01 UTC) #38
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-12 00:38:49 UTC) #40
commit-bot: I haz the power
5 years ago (2015-12-12 00:39:46 UTC) #42
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cbe5b1fc629ab93631e1ba069c05936576ca93e9
Cr-Commit-Position: refs/heads/master@{#364845}

Powered by Google App Engine
This is Rietveld 408576698