1#!/usr/bin/env 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. 5 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. 9 10THIS_ABS_DIR=$(cd $(dirname $0) && echo $PWD) 11CLANG_LIB_PATH=$THIS_ABS_DIR/../../../third_party/llvm-build/Release+Asserts/lib 12 13if uname -s | grep -q Darwin; then 14 LIBSUFFIX=dylib 15else 16 LIBSUFFIX=so 17fi 18 19echo -Xclang -load -Xclang $CLANG_LIB_PATH/libFindBadConstructs.$LIBSUFFIX \ 20 -Xclang -add-plugin -Xclang find-bad-constructs 21