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

Unified Diff: third_party/WebKit/Source/BUILD.gn

Issue 2081543002: Add gn Blink GC plugin options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/config.gni » ('j') | third_party/WebKit/Source/config.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/BUILD.gn
diff --git a/third_party/WebKit/Source/BUILD.gn b/third_party/WebKit/Source/BUILD.gn
index 6ecca3e43d562ea0ea3ab442cef3b634150e2a46..0397c66b5e850d631312508cfd40d9b8c3c0c531 100644
--- a/third_party/WebKit/Source/BUILD.gn
+++ b/third_party/WebKit/Source/BUILD.gn
@@ -54,32 +54,40 @@ config("config") {
}
if (is_clang && blink_gc_plugin && clang_use_chrome_plugins) {
+ _blink_gc_plugin_dll_extension = "so"
if (is_mac || is_ios) {
+ _blink_gc_plugin_dll_extension = "dylib"
+ }
+ cflags += [
+ "-Xclang",
+ "-load",
+ "-Xclang",
+ rebase_path(
+ "${blink_gc_plugin_lib_path}/libBlinkGCPlugin.${_blink_gc_plugin_dll_extension}",
Nico 2016/06/21 20:53:13 this should only be done if is_mac || is_ios || is
sof 2016/06/22 10:58:04 Thanks, fixed (the regression.)
+ root_build_dir),
+ "-Xclang",
+ "-add-plugin",
+ "-Xclang",
+ "blink-gc-plugin",
+ ]
+
+ # Add arguments for enabled GC plugin options:
+ if (blink_gc_plugin_option_do_dump_graph) {
cflags += [
"-Xclang",
- "-load",
+ "-plugin-arg-blink-gc-plugin",
"-Xclang",
- rebase_path(
- "//third_party/llvm-build/Release+Asserts/lib/libBlinkGCPlugin.dylib",
- root_build_dir),
+ "dump-graph",
]
- } else if (is_linux) {
+ }
+ if (blink_gc_plugin_option_warn_unneeded_finalizer) {
cflags += [
"-Xclang",
- "-load",
+ "-plugin-arg-blink-gc-plugin",
"-Xclang",
- rebase_path(
- "//third_party/llvm-build/Release+Asserts/lib/libBlinkGCPlugin.so",
- root_build_dir),
+ "warn-unneeded-finalizer",
]
}
-
- cflags += [
- "-Xclang",
- "-add-plugin",
- "-Xclang",
- "blink-gc-plugin",
- ]
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/config.gni » ('j') | third_party/WebKit/Source/config.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698