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

Issue 1476923004: [Chromecast] Include all stdlibc++/libgcc symbols in cast_shell. (Closed)

Created:
5 years ago by bcf
Modified:
5 years ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Include all stdlibc++/libgcc symbols in cast executables. For GN this change required refactoring the way default configs are applied to executables and shared libraries. The targets //build/config:{executable_config, shared_library_config} were created for this purpose. BUG= internal b/25566835 Committed: https://crrev.com/fbf4f9ac36e9e121620d65ca85dd998a67745049 Cr-Commit-Position: refs/heads/master@{#364118}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moved options to common.gypi and only for executables #

Patch Set 3 : Updated comments #

Patch Set 4 : Associated GN change. #

Patch Set 5 : Updated directory structure. #

Patch Set 6 : Make sure chromecast gets linux options #

Patch Set 7 : Style updates. #

Total comments: 2

Patch Set 8 : Add shlib ldflags for GN #

Total comments: 2

Patch Set 9 : Remove --export-dynamic from shlib_config #

Total comments: 2

Patch Set 10 : Updated comment. #

Total comments: 3

Patch Set 11 : Add comment for static libstdc++/libgcc for executables #

Total comments: 6

Patch Set 12 : Refactor executable and shlib defaults #

Total comments: 7

Patch Set 13 : Fix nits #

Total comments: 2

Patch Set 14 : Handle commonly removed windows configs #

Patch Set 15 : Fixed copy error. #

Patch Set 16 : Put hide_native_jni_exports back to BUILDCONFIG.gn #

Patch Set 17 : Disable executable options on Android. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -21 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +29 lines, -1 line 1 comment Download
M build/config/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +47 lines, -0 lines 0 comments Download
M build/config/BUILDCONFIG.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -19 lines 0 comments Download
A build/config/chromecast/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 83 (20 generated)
bcf
We decided that we were bound to run into more issues by running multiple copies ...
5 years ago (2015-11-25 19:27:32 UTC) #3
bcf
https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp File chromecast/chromecast.gyp (right): https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp#newcode81 chromecast/chromecast.gyp:81: 'target_name': 'cast_shlib_consumer_ldflags', This is a target any executable which ...
5 years ago (2015-11-25 19:31:23 UTC) #4
wzhong
https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp File chromecast/chromecast.gyp (right): https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp#newcode793 chromecast/chromecast.gyp:793: 'cast_shlib_consumer_ldflags', This only covers cast_shell. How about other exec ...
5 years ago (2015-11-25 20:46:26 UTC) #5
bcf
On 2015/11/25 20:46:26, wzhong wrote: > https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp > File chromecast/chromecast.gyp (right): > > https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp#newcode793 > ...
5 years ago (2015-11-25 21:19:38 UTC) #6
halliwell
On 2015/11/25 21:19:38, bcf wrote: > On 2015/11/25 20:46:26, wzhong wrote: > > https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp > ...
5 years ago (2015-11-25 21:21:34 UTC) #7
bcf
On 2015/11/25 21:21:34, halliwell wrote: > On 2015/11/25 21:19:38, bcf wrote: > > On 2015/11/25 ...
5 years ago (2015-11-25 21:48:03 UTC) #8
wzhong
The difference is 500K. (Bug I guess you have export for update_engine and v2mirroring yet, ...
5 years ago (2015-11-25 22:05:14 UTC) #9
halliwell
On 2015/11/25 22:05:14, wzhong wrote: > The difference is 500K. > > (Bug I guess ...
5 years ago (2015-11-25 22:07:59 UTC) #10
bcf
On 2015/11/25 22:05:14, wzhong wrote: > The difference is 500K. > > (Bug I guess ...
5 years ago (2015-11-25 22:09:31 UTC) #11
bcf
On 2015/11/25 22:09:31, bcf wrote: > On 2015/11/25 22:05:14, wzhong wrote: > > The difference ...
5 years ago (2015-11-25 23:13:52 UTC) #12
wzhong
lgtm
5 years ago (2015-11-25 23:39:53 UTC) #14
halliwell
On 2015/11/25 23:39:53, wzhong wrote: > lgtm lgtm - is there follow-up needed on gn ...
5 years ago (2015-11-25 23:46:19 UTC) #15
bcf
On 2015/11/25 23:46:19, halliwell wrote: > On 2015/11/25 23:39:53, wzhong wrote: > > lgtm > ...
5 years ago (2015-11-26 00:02:21 UTC) #16
wzhong
_type=="executable is used by Android and iOS in the same common.gypi. How do they migrate ...
5 years ago (2015-11-26 00:22:47 UTC) #17
wzhong
This CL fixes b/25767500 as well.
5 years ago (2015-11-30 17:05:05 UTC) #18
slan
On 2015/11/25 19:31:23, bcf wrote: > https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp > File chromecast/chromecast.gyp (right): > > https://codereview.chromium.org/1476923004/diff/1/chromecast/chromecast.gyp#newcode81 > ...
5 years ago (2015-11-30 17:12:45 UTC) #19
slan
On 2015/11/26 00:02:21, bcf wrote: > On 2015/11/25 23:46:19, halliwell wrote: > > On 2015/11/25 ...
5 years ago (2015-11-30 17:20:37 UTC) #20
bcf
I decided to go with the BUILDCONFIG route for maintenance. What do others think?
5 years ago (2015-11-30 22:11:19 UTC) #21
slan
On 2015/11/30 22:11:19, bcf wrote: > I decided to go with the BUILDCONFIG route for ...
5 years ago (2015-12-01 19:28:53 UTC) #22
slan
+dpranke@ for real this time. Dirk, please see the last CL comment. https://codereview.chromium.org/1476923004/diff/120001/build/common.gypi File build/common.gypi ...
5 years ago (2015-12-01 19:29:32 UTC) #24
bcf
https://codereview.chromium.org/1476923004/diff/120001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1476923004/diff/120001/build/common.gypi#newcode4154 build/common.gypi:4154: '-Wl,--export-dynamic', On 2015/12/01 19:29:32, slan wrote: > If we ...
5 years ago (2015-12-01 19:52:31 UTC) #25
Dirk Pranke
this lgtm, but I'm not 100% sure I understand the implications of these linker flags, ...
5 years ago (2015-12-01 20:23:23 UTC) #27
bcf
On 2015/12/01 20:23:23, Dirk Pranke wrote: > this lgtm, but I'm not 100% sure I ...
5 years ago (2015-12-01 21:03:03 UTC) #29
byungchul
https://codereview.chromium.org/1476923004/diff/140001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1476923004/diff/140001/build/common.gypi#newcode4154 build/common.gypi:4154: '-Wl,--export-dynamic', Why isn't it only for executable? https://codereview.chromium.org/1476923004/diff/140001/build/config/chromecast/BUILD.gn File ...
5 years ago (2015-12-01 21:22:48 UTC) #30
bcf
On 2015/12/01 21:22:48, byungchul wrote: > https://codereview.chromium.org/1476923004/diff/140001/build/common.gypi > File build/common.gypi (right): > > https://codereview.chromium.org/1476923004/diff/140001/build/common.gypi#newcode4154 > ...
5 years ago (2015-12-01 21:28:40 UTC) #31
Nico
(i left a few comments on your doc. consider making docs linked on open-source cls ...
5 years ago (2015-12-01 21:32:27 UTC) #32
byungchul
On 2015/12/01 21:28:40, bcf wrote: > On 2015/12/01 21:22:48, byungchul wrote: > > https://codereview.chromium.org/1476923004/diff/140001/build/common.gypi > ...
5 years ago (2015-12-01 21:40:54 UTC) #33
wzhong
Executable itself is always the first in symbol lookup scope at runtime. See section 1.5.4 ...
5 years ago (2015-12-01 22:05:33 UTC) #34
byungchul
On 2015/12/01 22:05:33, wzhong wrote: > Executable itself is always the first in symbol lookup ...
5 years ago (2015-12-01 22:29:41 UTC) #35
bcf
On 2015/12/01 22:29:41, byungchul wrote: > On 2015/12/01 22:05:33, wzhong wrote: > > Executable itself ...
5 years ago (2015-12-02 00:53:19 UTC) #36
byungchul
https://codereview.chromium.org/1476923004/diff/160001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1476923004/diff/160001/build/common.gypi#newcode4169 build/common.gypi:4169: # merge at runtime. The right description would be, ...
5 years ago (2015-12-02 01:03:22 UTC) #37
bcf
https://codereview.chromium.org/1476923004/diff/160001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1476923004/diff/160001/build/common.gypi#newcode4169 build/common.gypi:4169: # merge at runtime. On 2015/12/02 01:03:22, byungchul wrote: ...
5 years ago (2015-12-02 02:26:02 UTC) #38
bcf
https://codereview.chromium.org/1476923004/diff/180001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/180001/build/config/chromecast/BUILD.gn#newcode32 build/config/chromecast/BUILD.gn:32: configs = [ ":static_config" ] @wzhong, we talked about ...
5 years ago (2015-12-02 02:37:24 UTC) #39
wzhong
https://codereview.chromium.org/1476923004/diff/180001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/180001/build/config/chromecast/BUILD.gn#newcode32 build/config/chromecast/BUILD.gn:32: configs = [ ":static_config" ] On 2015/12/02 02:37:23, bcf ...
5 years ago (2015-12-02 02:42:52 UTC) #40
bcf
https://codereview.chromium.org/1476923004/diff/180001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/180001/build/config/chromecast/BUILD.gn#newcode32 build/config/chromecast/BUILD.gn:32: configs = [ ":static_config" ] On 2015/12/02 02:42:52, wzhong ...
5 years ago (2015-12-02 03:20:23 UTC) #41
wzhong
lgtm
5 years ago (2015-12-02 04:53:57 UTC) #42
slan
lgtm % question +brettw@ for BUILDCONFIG.gn OWNERS https://codereview.chromium.org/1476923004/diff/200001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/200001/build/config/chromecast/BUILD.gn#newcode5 build/config/chromecast/BUILD.gn:5: assert(is_chromecast) I'm ...
5 years ago (2015-12-02 15:25:24 UTC) #44
brettw
https://codereview.chromium.org/1476923004/diff/200001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/1476923004/diff/200001/build/config/BUILDCONFIG.gn#newcode510 build/config/BUILDCONFIG.gn:510: } else if (is_linux || is_android || is_chromecast) { ...
5 years ago (2015-12-02 18:43:36 UTC) #45
bcf
https://codereview.chromium.org/1476923004/diff/200001/build/config/chromecast/BUILD.gn File build/config/chromecast/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/200001/build/config/chromecast/BUILD.gn#newcode19 build/config/chromecast/BUILD.gn:19: "-Wl,--export-dynamic", On 2015/12/02 18:43:35, brettw wrote: > I'd like ...
5 years ago (2015-12-02 19:12:27 UTC) #46
bcf
https://codereview.chromium.org/1476923004/diff/200001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/1476923004/diff/200001/build/config/BUILDCONFIG.gn#newcode510 build/config/BUILDCONFIG.gn:510: } else if (is_linux || is_android || is_chromecast) { ...
5 years ago (2015-12-02 23:33:01 UTC) #47
bcf
On 2015/12/02 23:33:01, bcf wrote: > https://codereview.chromium.org/1476923004/diff/200001/build/config/BUILDCONFIG.gn > File build/config/BUILDCONFIG.gn (right): > > https://codereview.chromium.org/1476923004/diff/200001/build/config/BUILDCONFIG.gn#newcode510 > ...
5 years ago (2015-12-04 18:52:09 UTC) #48
slan
https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn#newcode428 build/config/BUILD.gn:428: config("executable_config") { Hmmm. Though it appears to be legal, ...
5 years ago (2015-12-07 16:13:32 UTC) #49
Dirk Pranke
https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn#newcode428 build/config/BUILD.gn:428: config("executable_config") { On 2015/12/07 16:13:32, slan wrote: > Hmmm. ...
5 years ago (2015-12-07 21:03:42 UTC) #50
slan
https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn#newcode428 build/config/BUILD.gn:428: config("executable_config") { On 2015/12/07 21:03:42, Dirk Pranke wrote: > ...
5 years ago (2015-12-07 21:07:47 UTC) #51
bcf
https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/220001/build/config/BUILD.gn#newcode438 build/config/BUILD.gn:438: } else if (is_linux || is_android || is_chromecast) { ...
5 years ago (2015-12-07 21:39:49 UTC) #52
brettw
https://codereview.chromium.org/1476923004/diff/240001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/240001/build/config/BUILD.gn#newcode423 build/config/BUILD.gn:423: "//build/config/win:console", This won't work since targets need to override ...
5 years ago (2015-12-08 01:08:58 UTC) #53
bcf
https://codereview.chromium.org/1476923004/diff/240001/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1476923004/diff/240001/build/config/BUILD.gn#newcode423 build/config/BUILD.gn:423: "//build/config/win:console", On 2015/12/08 01:08:58, brettw wrote: > This won't ...
5 years ago (2015-12-08 02:22:26 UTC) #54
brettw
GN build LGTM
5 years ago (2015-12-08 05:01:40 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476923004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476923004/280001
5 years ago (2015-12-08 18:40:36 UTC) #57
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/150812)
5 years ago (2015-12-08 18:57:37 UTC) #59
bcf
I put "//build/config/android:hide_native_jni_exports" back in BUILDCONFIG.gn because it needs to be removed by a target. ...
5 years ago (2015-12-08 21:20:27 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476923004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476923004/300001
5 years ago (2015-12-08 21:22:01 UTC) #62
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/89383)
5 years ago (2015-12-08 21:49:11 UTC) #64
bcf
https://codereview.chromium.org/1476923004/diff/320001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1476923004/diff/320001/build/common.gypi#newcode4164 build/common.gypi:4164: [ '_type=="executable" and OS!="android"', { Android uses its own ...
5 years ago (2015-12-09 00:34:55 UTC) #65
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476923004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476923004/320001
5 years ago (2015-12-09 00:46:10 UTC) #67
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-09 02:42:09 UTC) #69
bcf
On 2015/12/09 02:42:09, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years ago (2015-12-09 02:46:59 UTC) #70
wzhong
Please mention the CONFIG refactoring in commit message. Otherwise LGTM.
5 years ago (2015-12-09 16:51:21 UTC) #71
brettw
I only briefly skimmed this but it looks fine.
5 years ago (2015-12-09 17:38:34 UTC) #72
slan
lgtm
5 years ago (2015-12-09 18:08:12 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476923004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476923004/320001
5 years ago (2015-12-09 19:09:18 UTC) #79
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years ago (2015-12-09 19:16:49 UTC) #81
commit-bot: I haz the power
5 years ago (2015-12-09 19:17:36 UTC) #83
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/fbf4f9ac36e9e121620d65ca85dd998a67745049
Cr-Commit-Position: refs/heads/master@{#364118}

Powered by Google App Engine
This is Rietveld 408576698