media/webrtc/trunk/tools/clang/scripts/plugin_flags.sh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/tools/clang/scripts/plugin_flags.sh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +#!/bin/bash
     1.5 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.6 +# Use of this source code is governed by a BSD-style license that can be
     1.7 +# found in the LICENSE file.
     1.8 +
     1.9 +# This script returns the flags that should be used when GYP_DEFINES contains
    1.10 +# clang_use_chrome_plugins. The flags are stored in a script so that they can
    1.11 +# be changed on the bots without requiring a master restart.
    1.12 +
    1.13 +THIS_ABS_DIR=$(cd $(dirname $0) && echo $PWD)
    1.14 +CLANG_LIB_PATH=$THIS_ABS_DIR/../../../third_party/llvm-build/Release+Asserts/lib
    1.15 +
    1.16 +if uname -s | grep -q Darwin; then
    1.17 +  LIBSUFFIX=dylib
    1.18 +else
    1.19 +  LIBSUFFIX=so
    1.20 +fi
    1.21 +
    1.22 +echo -Xclang -load -Xclang $CLANG_LIB_PATH/libFindBadConstructs.$LIBSUFFIX \
    1.23 +  -Xclang -add-plugin -Xclang find-bad-constructs \
    1.24 +  -Xclang -plugin-arg-find-bad-constructs \
    1.25 +  -Xclang skip-virtuals-in-implementations \
    1.26 +  -Xclang -plugin-arg-find-bad-constructs \
    1.27 +  -Xclang check-cc-directory

mercurial