Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Side by Side Diff: tools/clang/scripts/plugin_flags.py

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/clang/scripts/package.sh ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2015 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
10 import os
11 import sys
12
13 # Path constants. (All of these should be absolute paths.)
14 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
15 CHROMIUM_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..', '..'))
16 CLANG_LIB_PATH = os.path.join(CHROMIUM_DIR, 'third_party', 'llvm-build',
17 'Release+Asserts', 'lib')
18
19 if sys.platform == 'darwin':
20 LIBSUFFIX = 'dylib'
21 else:
22 LIBSUFFIX = 'so'
23
24 LIB_PATH = os.path.join(
25 CLANG_LIB_PATH,
26 'libFindBadConstructs.' + LIBSUFFIX)
27
28 print ('-Xclang -load -Xclang %s'
29 ' -Xclang -add-plugin -Xclang find-bad-constructs') % LIB_PATH
OLDNEW
« no previous file with comments | « tools/clang/scripts/package.sh ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698