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

Issue 2288953002: [Chromecast] Only include all libstdc++/libgcc symbols in executable as needed (Closed)

Created:
4 years, 3 months ago by antz1
Modified:
4 years, 3 months ago
CC:
chromium-reviews, alokp+watch_chromium.org, lcwu+watch_chromium.org, sadrul, halliwell+watch_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Only include all libstdc++/libgcc symbols in executable as needed All chromecast executable include all libstdc++/libgcc symbols by default due to b/25566835. Added a config for --whole-archive for only ones that depend on shared libs. ~700kb saving per executable. BUG=internal b/30398176 Committed: https://crrev.com/92947f235fcf22912990029925b4154e7ea08f74 Cr-Commit-Position: refs/heads/master@{#416588}

Patch Set 1 #

Total comments: 4

Patch Set 2 : [Chromecast] Only include all libstdc++/libgcc symbols in executable as needed #

Patch Set 3 : Moved more flags per comments by bcf #

Total comments: 4

Patch Set 4 : Fixed comments. #

Patch Set 5 : Fixed comments #

Total comments: 3

Patch Set 6 : Updated conditional to exclude android build #

Total comments: 6

Patch Set 7 : Refactored conditional #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -9 lines) Patch
M build/config/chromecast/BUILD.gn View 1 2 3 4 5 6 3 chunks +19 lines, -9 lines 0 comments Download
M chromecast/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chromecast/crash/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (22 generated)
antz1
4 years, 3 months ago (2016-08-29 21:05:40 UTC) #3
wzhong
Can you please list the saving in the commit message?
4 years, 3 months ago (2016-08-29 21:06:34 UTC) #5
bcf
https://codereview.chromium.org/2288953002/diff/1/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (left): https://codereview.chromium.org/2288953002/diff/1/build/config/chromecast/BUILD.gn#oldcode40 build/config/chromecast/BUILD.gn:40: if (current_cpu == "arm") { You should be able ...
4 years, 3 months ago (2016-08-29 21:22:51 UTC) #6
antz1
https://codereview.chromium.org/2288953002/diff/1/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (left): https://codereview.chromium.org/2288953002/diff/1/build/config/chromecast/BUILD.gn#oldcode40 build/config/chromecast/BUILD.gn:40: if (current_cpu == "arm") { On 2016/08/29 21:22:51, bcf ...
4 years, 3 months ago (2016-08-29 23:09:34 UTC) #9
bcf
lgtm. Are these the only executables which depend on shlibs? https://codereview.chromium.org/2288953002/diff/40001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/40001/build/config/chromecast/BUILD.gn#newcode37 ...
4 years, 3 months ago (2016-08-29 23:26:15 UTC) #12
antz1
On 2016/08/29 23:26:15, bcf wrote: > lgtm. Are these the only executables which depend on ...
4 years, 3 months ago (2016-08-29 23:36:24 UTC) #13
bcf
https://codereview.chromium.org/2288953002/diff/40001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/40001/build/config/chromecast/BUILD.gn#newcode64 build/config/chromecast/BUILD.gn:64: # static linking in order to prevent the executable ...
4 years, 3 months ago (2016-08-29 23:40:36 UTC) #14
antz1
https://codereview.chromium.org/2288953002/diff/40001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/40001/build/config/chromecast/BUILD.gn#newcode64 build/config/chromecast/BUILD.gn:64: # static linking in order to prevent the executable ...
4 years, 3 months ago (2016-08-30 00:00:28 UTC) #15
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/2288953002/80001
4 years, 3 months ago (2016-08-30 22:18:56 UTC) #18
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, 3 months ago (2016-08-30 22:18:58 UTC) #20
slan
https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn#newcode63 build/config/chromecast/BUILD.gn:63: if (current_cpu == "arm") { Why just "arm" here? ...
4 years, 3 months ago (2016-08-30 22:22:53 UTC) #21
bcf
https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn#newcode63 build/config/chromecast/BUILD.gn:63: if (current_cpu == "arm") { On 2016/08/30 22:22:53, slan ...
4 years, 3 months ago (2016-08-30 22:36:43 UTC) #22
slan
https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn#newcode63 build/config/chromecast/BUILD.gn:63: if (current_cpu == "arm") { On 2016/08/30 22:36:43, bcf ...
4 years, 3 months ago (2016-08-30 22:46:51 UTC) #23
bcf
On 2016/08/30 22:46:51, slan wrote: > https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn > File build/config/chromecast/BUILD.gn (right): > > https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn#newcode63 > ...
4 years, 3 months ago (2016-08-30 23:02:52 UTC) #24
antz1
On 2016/08/30 23:02:52, bcf wrote: > On 2016/08/30 22:46:51, slan wrote: > > > https://codereview.chromium.org/2288953002/diff/80001/build/config/chromecast/BUILD.gn ...
4 years, 3 months ago (2016-08-31 22:16:48 UTC) #25
slan
On 2016/08/31 22:16:48, antz1 wrote: > On 2016/08/30 23:02:52, bcf wrote: > > On 2016/08/30 ...
4 years, 3 months ago (2016-09-01 02:33:38 UTC) #30
antz1
On 2016/09/01 02:33:38, slan wrote: > On 2016/08/31 22:16:48, antz1 wrote: > > On 2016/08/30 ...
4 years, 3 months ago (2016-09-01 06:15:33 UTC) #31
antz1
After offline discussion: 1. we will need to statically link against libgcc and libstdc++ for ...
4 years, 3 months ago (2016-09-01 23:14:08 UTC) #32
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/2288953002/100001
4 years, 3 months ago (2016-09-02 00:28:16 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/251731)
4 years, 3 months ago (2016-09-02 00:35:18 UTC) #37
antz1
Need owners to lgtm, please review. :)
4 years, 3 months ago (2016-09-02 20:26:29 UTC) #39
wzhong
lgtm
4 years, 3 months ago (2016-09-02 20:34:48 UTC) #40
bcf
Nit https://codereview.chromium.org/2288953002/diff/100001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/100001/build/config/chromecast/BUILD.gn#newcode65 build/config/chromecast/BUILD.gn:65: if (current_cpu == "arm" && !is_android) { Define ...
4 years, 3 months ago (2016-09-02 20:35:12 UTC) #41
scottmg
->dpranke for OWNERS who I think reviewed most of the chromecast/BUILD.gn changes. https://codereview.chromium.org/2288953002/diff/100001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn ...
4 years, 3 months ago (2016-09-02 20:40:55 UTC) #42
antz1
https://codereview.chromium.org/2288953002/diff/100001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/2288953002/diff/100001/build/config/chromecast/BUILD.gn#newcode37 build/config/chromecast/BUILD.gn:37: # Whole archiving libgcc.a and libstdc++ is needed if ...
4 years, 3 months ago (2016-09-02 21:22:53 UTC) #43
Dirk Pranke
lgtm
4 years, 3 months ago (2016-09-06 00:54:27 UTC) #44
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/2288953002/120001
4 years, 3 months ago (2016-09-06 04:28:33 UTC) #47
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-06 05:43:07 UTC) #49
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 05:44:47 UTC) #51
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/92947f235fcf22912990029925b4154e7ea08f74
Cr-Commit-Position: refs/heads/master@{#416588}

Powered by Google App Engine
This is Rietveld 408576698