Commit ec7c92df authored by dcheng's avatar dcheng Committed by Commit bot

Add a GN option to use Chromium style naming with the Blink GC plugin.

BUG=584538

Review-Url: https://codereview.chromium.org/2594603002
Cr-Commit-Position: refs/heads/master@{#439885}
parent 2530db14
......@@ -24,6 +24,11 @@ declare_args() {
# a class has an empty destructor which would be unnecessarily invoked
# when finalized.
blink_gc_plugin_option_warn_unneeded_finalizer = false
# Set to true to have the clang Blink GC plugin use Chromium-style naming
# rather than legacy Blink name.
# TODO(https://crbug.com/675879): Remove this option after the Blink rename.
blink_gc_plugin_option_use_chromium_style_naming = false
}
# features ---------------------------------------------------------------------
......@@ -149,6 +154,14 @@ config("config") {
"warn-unneeded-finalizer",
]
}
if (blink_gc_plugin_option_use_chromium_style_naming) {
cflags += [
"-Xclang",
"-plugin-arg-blink-gc-plugin",
"-Xclang",
"use-chromium-style-naming",
]
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment