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

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

Issue 1052033006: Support custom path of blink_gc_plugin for distributed builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | 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 38ea72d695807e8649c3bab696597c1a1545ca12..27ff8796beb3be0c7c10c25ad0223f9b6c60549a 100755
--- a/tools/clang/scripts/blink_gc_plugin_flags.sh
+++ b/tools/clang/scripts/blink_gc_plugin_flags.sh
@@ -25,6 +25,8 @@ for arg in "$@"; do
FLAGS="$FLAGS $PREFIX warn-raw-ptr"
elif [[ "$arg" = "warn-unneeded-finalizer=1" ]]; then
FLAGS="$FLAGS $PREFIX warn-unneeded-finalizer"
+ elif [[ "$arg" = custom_clang_lib_path=* ]]; then
+ CLANG_LIB_PATH="$(cd ${arg#*=} && echo $PWD)"
hans 2015/04/15 09:33:42 Why bash is rusty. What does ${arg#*=} do?
wjywbs 2015/04/15 15:23:29 If arg="custom_clang_lib_path=/tmp/llvm", then "${
hans 2015/04/15 15:36:09 Thanks. What about quotes? In the "$arg" = test a
wjywbs 2015/04/16 02:20:41 I tried that quoted string was for exact match, an
fi
done
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698