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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rwxr-xr-x

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 #!/bin/bash
     2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
     3 # Use of this source code is governed by a BSD-style license that can be
     4 # found in the LICENSE file.
     6 # This script returns the flags that should be used when GYP_DEFINES contains
     7 # clang_use_chrome_plugins. The flags are stored in a script so that they can
     8 # be changed on the bots without requiring a master restart.
    10 THIS_ABS_DIR=$(cd $(dirname $0) && echo $PWD)
    11 CLANG_LIB_PATH=$THIS_ABS_DIR/../../../third_party/llvm-build/Release+Asserts/lib
    13 if uname -s | grep -q Darwin; then
    14   LIBSUFFIX=dylib
    15 else
    16   LIBSUFFIX=so
    17 fi
    19 echo -Xclang -load -Xclang $CLANG_LIB_PATH/libFindBadConstructs.$LIBSUFFIX \
    20   -Xclang -add-plugin -Xclang find-bad-constructs \
    21   -Xclang -plugin-arg-find-bad-constructs \
    22   -Xclang skip-virtuals-in-implementations \
    23   -Xclang -plugin-arg-find-bad-constructs \
    24   -Xclang check-cc-directory

mercurial