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..96dcade44c8e653f3e70827d78f2cd770144a9ab 100755 |
--- a/tools/clang/scripts/blink_gc_plugin_flags.sh |
+++ b/tools/clang/scripts/blink_gc_plugin_flags.sh |
@@ -25,8 +25,10 @@ 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)" |
fi |
done |
-echo -Xclang -load -Xclang $CLANG_LIB_PATH/libBlinkGCPlugin.$LIBSUFFIX \ |
+echo -Xclang -load -Xclang \"$CLANG_LIB_PATH/libBlinkGCPlugin.$LIBSUFFIX\" \ |
-Xclang -add-plugin -Xclang blink-gc-plugin $FLAGS |