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 59e10295ee18cda0dcc1e975220172a945056b8c..3654808120d5dd3f93598c44cb43db7f3eaf4dc3 100755 |
--- a/tools/clang/scripts/blink_gc_plugin_flags.sh |
+++ b/tools/clang/scripts/blink_gc_plugin_flags.sh |
@@ -5,8 +5,8 @@ |
# This script returns the flags that should be passed to clang. |
-THIS_ABS_DIR=$(cd $(dirname $0) && echo $PWD) |
-CLANG_LIB_PATH=$THIS_ABS_DIR/../../../third_party/llvm-build/Release+Asserts/lib |
+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 |
@@ -14,7 +14,7 @@ else |
LIBSUFFIX=so |
fi |
LIBNAME=\ |
-$(grep 'set(LIBRARYNAME' "$THIS_ABS_DIR"/../blink_gc_plugin/CMakeLists.txt \ |
+$(grep 'set(LIBRARYNAME' "$SRC_DIR"/tools/clang/blink_gc_plugin/CMakeLists.txt \ |
| cut -d ' ' -f 2 | tr -d ')') |
FLAGS="" |