Chromium Code Reviews| 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 |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..9ef22e3f44d19fbf55653f0ad9439edd559eea46 |
| --- /dev/null |
| +++ b/tools/clang/scripts/blink_gc_plugin_flags.sh |
| @@ -0,0 +1,18 @@ |
| +#!/usr/bin/env bash |
| +# Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +# 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. |
| + |
| +THIS_ABS_DIR=$(cd $(dirname $0) && echo $PWD) |
| +CLANG_LIB_PATH=$THIS_ABS_DIR/../../../third_party/llvm-build/Release+Asserts/lib |
| + |
| +if uname -s | grep -q Darwin; then |
| + LIBSUFFIX=dylib |
| +else |
| + LIBSUFFIX=so |
| +fi |
| + |
| +echo -Xclang -load -Xclang $CLANG_LIB_PATH/libBlinkGCPlugin.$LIBSUFFIX \ |
| + -Xclang -add-plugin -Xclang blink-gc-plugin |
|
Nico
2014/01/17 20:35:49
You'll also have to add this to gn like in https:/
|