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

Issue 2081543002: Add gn Blink GC plugin options (Closed)

Created:
4 years, 6 months ago by sof
Modified:
4 years, 6 months ago
Reviewers:
oilpan-reviews, Nico
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add gn Blink GC plugin options The Blink GC clang plugin supports a couple of extra options which the Blink GN configuration did not expose. Do so here, but without depending on the 'flags' script used by the gyp build system (tools/clang/scripts/blink_gc_plugin_flags.py). Specifically, this adds the following Blink GN variables: - blink_gc_plugin_lib_path = "<path>" overridable path to the directory of the GC plugin dynamic library. - blink_gc_plugin_option_do_dump_graph [ = false ] emit JSON-serialized representation of class graph. - blink_gc_plugin_option_warn_unneeded_finalizer [ = false ] warn of unnecessary destructor usage. R= BUG=

Patch Set 1 #

Total comments: 7

Patch Set 2 : add clang_plugin_lib_path + other fixes #

Patch Set 3 : rebased #

Total comments: 2

Patch Set 4 : generalize and add clang_base_path.. #

Patch Set 5 : add missing 'import's #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -43 lines) Patch
M build/config/clang/BUILD.gn View 1 2 3 1 chunk +4 lines, -6 lines 0 comments Download
M build/config/clang/clang.gni View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M build/config/posix/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M build/config/sanitizers/BUILD.gn View 1 2 3 3 chunks +4 lines, -3 lines 1 comment Download
M build/config/win/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M build/sanitizers/BUILD.gn View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M build/toolchain/android/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 2 3 4 4 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/BUILD.gn View 1 2 3 2 chunks +43 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/config.gni View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
sof
please take a look. I'm not familiar with GN, so exposing these plugin options as ...
4 years, 6 months ago (2016-06-19 07:36:56 UTC) #3
haraken
Yeah, it looks better to ask Nico for the review.
4 years, 6 months ago (2016-06-19 11:07:27 UTC) #4
Nico
Generally lgtm. If you want to land this without another hop: * move declare_args into ...
4 years, 6 months ago (2016-06-21 20:53:14 UTC) #5
sof
thanks, i'll follow up the feedback tomorrow. https://codereview.chromium.org/2081543002/diff/1/third_party/WebKit/Source/config.gni File third_party/WebKit/Source/config.gni (right): https://codereview.chromium.org/2081543002/diff/1/third_party/WebKit/Source/config.gni#newcode32 third_party/WebKit/Source/config.gni:32: blink_gc_plugin_lib_path = ...
4 years, 6 months ago (2016-06-21 21:12:39 UTC) #6
sof
https://codereview.chromium.org/2081543002/diff/1/third_party/WebKit/Source/BUILD.gn File third_party/WebKit/Source/BUILD.gn (right): https://codereview.chromium.org/2081543002/diff/1/third_party/WebKit/Source/BUILD.gn#newcode66 third_party/WebKit/Source/BUILD.gn:66: "${blink_gc_plugin_lib_path}/libBlinkGCPlugin.${_blink_gc_plugin_dll_extension}", On 2016/06/21 20:53:13, Nico wrote: > this should ...
4 years, 6 months ago (2016-06-22 10:58:04 UTC) #7
Nico
https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni File build/config/clang/clang.gni (right): https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni#newcode13 build/config/clang/clang.gni:13: # distributed compilation setups. Is it useful to switch ...
4 years, 6 months ago (2016-06-22 14:31:47 UTC) #8
sof
https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni File build/config/clang/clang.gni (right): https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni#newcode13 build/config/clang/clang.gni:13: # distributed compilation setups. On 2016/06/22 14:31:47, Nico wrote: ...
4 years, 6 months ago (2016-06-22 14:39:49 UTC) #9
Nico
On 2016/06/22 14:39:49, sof wrote: > https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni > File build/config/clang/clang.gni (right): > > https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni#newcode13 > ...
4 years, 6 months ago (2016-06-22 14:41:46 UTC) #10
sof
On 2016/06/22 14:41:46, Nico wrote: > On 2016/06/22 14:39:49, sof wrote: > > > https://codereview.chromium.org/2081543002/diff/40001/build/config/clang/clang.gni ...
4 years, 6 months ago (2016-06-22 14:45:15 UTC) #11
Nico
On 2016/06/22 14:45:15, sof wrote: > On 2016/06/22 14:41:46, Nico wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 14:50:02 UTC) #12
sof
On 2016/06/22 14:50:02, Nico wrote: > On 2016/06/22 14:45:15, sof wrote: > > On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 15:24:09 UTC) #13
sof
On 2016/06/22 15:24:09, sof wrote: > On 2016/06/22 14:50:02, Nico wrote: ... > > > ...
4 years, 6 months ago (2016-06-22 19:44:19 UTC) #14
Nico
lgtm Thanks, this looks great. I wished for a toggle like this in the past, ...
4 years, 6 months ago (2016-06-22 20:01:56 UTC) #15
pcc1
Thanks for working on this! When I envisioned adding a configuration flag to override the ...
4 years, 6 months ago (2016-06-22 20:31:41 UTC) #16
sof
On 2016/06/22 20:31:41, pcc1 wrote: > Thanks for working on this! > > When I ...
4 years, 6 months ago (2016-06-22 21:00:10 UTC) #17
sof
4 years, 6 months ago (2016-06-23 09:53:51 UTC) #18
On 2016/06/22 20:01:56, Nico wrote:
> lgtm
> 
> Thanks, this looks great. I wished for a toggle like this in the past, and I
> know pcc did too.
> 
> I agree that splitting this in too sounds like a good idea (feel free to tbr
> each to me)
> 

Split up as https://codereview.chromium.org/2097433002/ +
https://codereview.chromium.org/2088373002/.

Thanks for the reviews, closing this one.

Powered by Google App Engine
This is Rietveld 408576698