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

Side by Side Diff: build/set_clang_warning_flags.gypi

Issue 430383002: Use clang as default host compiler when cross-compiling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 4 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is meant to be included to set clang-specific compiler flags. 5 # This file is meant to be included to set clang-specific compiler flags.
6 # To use this the following variable can be defined: 6 # To use this the following variable can be defined:
7 # clang_warning_flags: list: Compiler flags to pass to clang. 7 # clang_warning_flags: list: Compiler flags to pass to clang.
8 # clang_warning_flags_unset: list: Compiler flags to not pass to clang. 8 # clang_warning_flags_unset: list: Compiler flags to not pass to clang.
9 # 9 #
10 # Only use this in third-party code. In chromium_code, fix your code to not 10 # Only use this in third-party code. In chromium_code, fix your code to not
(...skipping 28 matching lines...) Expand all
39 'WARNING_CFLAGS': ['>@(clang_warning_flags)'], 39 'WARNING_CFLAGS': ['>@(clang_warning_flags)'],
40 'WARNING_CFLAGS!': ['>@(clang_warning_flags_unset)'], 40 'WARNING_CFLAGS!': ['>@(clang_warning_flags_unset)'],
41 }, 41 },
42 'msvs_settings': { 42 'msvs_settings': {
43 'VCCLCompilerTool': { 43 'VCCLCompilerTool': {
44 'AdditionalOptions': [ '>@(clang_warning_flags)' ], 44 'AdditionalOptions': [ '>@(clang_warning_flags)' ],
45 'AdditionalOptions!': [ '>@(clang_warning_flags_unset)' ], 45 'AdditionalOptions!': [ '>@(clang_warning_flags_unset)' ],
46 }, 46 },
47 }, 47 },
48 }], 48 }],
49 ['clang==0 and host_clang==1', {
50 'target_conditions': [
51 ['_toolset=="host"', {
52 'cflags': [ '>@(clang_warning_flags)' ],
53 'cflags!': [ '>@(clang_warning_flags_unset)' ],
54 }],
55 ],
56 }],
49 ], 57 ],
50 } 58 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698