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

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

Issue 1141793003: Update from https://crrev.com/329939 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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/scripts/blink_gc_plugin_flags.py ('k') | tools/clang/scripts/posix-print-revision.py » ('j') | 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 96dcade44c8e653f3e70827d78f2cd770144a9ab..1c883c51264702d7bcdd38131c807ddef252a65d 100755
--- a/tools/clang/scripts/blink_gc_plugin_flags.sh
+++ b/tools/clang/scripts/blink_gc_plugin_flags.sh
@@ -3,32 +3,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This script returns the flags that should be passed to clang.
-
-SRC_DIR=$(cd $(dirname $0)/../../.. && echo $PWD)
-CLANG_LIB_PATH=$SRC_DIR/third_party/llvm-build/Release+Asserts/lib
-
-if uname -s | grep -q Darwin; then
- LIBSUFFIX=dylib
-else
- LIBSUFFIX=so
-fi
-
-FLAGS=""
-PREFIX="-Xclang -plugin-arg-blink-gc-plugin -Xclang"
-for arg in "$@"; do
- if [[ "$arg" = "enable-oilpan=1" ]]; then
- FLAGS="$FLAGS $PREFIX enable-oilpan"
- elif [[ "$arg" = "dump-graph=1" ]]; then
- FLAGS="$FLAGS $PREFIX dump-graph"
- elif [[ "$arg" = "warn-raw-ptr=1" ]]; then
- 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\" \
- -Xclang -add-plugin -Xclang blink-gc-plugin $FLAGS
+# TODO(thakis): Remove this script once Source/config.gyp refers the the .py
+# file.
+THIS_DIR="$(dirname "${0}")"
+ABS_THIS_DIR="${PWD}/${THIS_DIR}"
+exec python "${ABS_THIS_DIR}/blink_gc_plugin_flags.py" "$@"
« no previous file with comments | « tools/clang/scripts/blink_gc_plugin_flags.py ('k') | tools/clang/scripts/posix-print-revision.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698