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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rwxr-xr-x

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial