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

Unified Diff: tools/clang/scripts/blink_gc_plugin_flags.sh

Issue 207913002: Global cycle detection analysis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 6 years, 9 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 | « tools/clang/blink_gc_plugin/tests/test.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/blink_gc_plugin_flags.sh
diff --git a/tools/clang/scripts/blink_gc_plugin_flags.sh b/tools/clang/scripts/blink_gc_plugin_flags.sh
index 7d41c97ee06762a1f8ff3a34626ae78794b9fa64..20767f6cce9906edc9be2a3e6f6dd4f876c98e61 100755
--- a/tools/clang/scripts/blink_gc_plugin_flags.sh
+++ b/tools/clang/scripts/blink_gc_plugin_flags.sh
@@ -19,9 +19,13 @@ $(grep LIBRARYNAME "$THIS_ABS_DIR"/../blink_gc_plugin/Makefile \
| cut -d ' ' -f 3)
FLAGS=""
-if [[ "$1" = "enable-oilpan=1" ]]; then
+for arg in "$@"; do
+ if [[ "$arg" = "enable-oilpan=1" ]]; then
FLAGS="$FLAGS -Xclang -plugin-arg-blink-gc-plugin -Xclang enable-oilpan"
-fi
+ elif [[ "$arg" = "detect-cycles=1" ]]; then
+ FLAGS="$FLAGS -Xclang -plugin-arg-blink-gc-plugin -Xclang detect-cycles"
+ fi
+done
echo -Xclang -load -Xclang $CLANG_LIB_PATH/lib$LIBNAME.$LIBSUFFIX \
-Xclang -add-plugin -Xclang blink-gc-plugin $FLAGS
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/test.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698