OLD | NEW |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ['clang==0 and host_clang==1', { | 49 ['clang==0 and host_clang==1', { |
50 'target_conditions': [ | 50 'target_conditions': [ |
51 ['_toolset=="host"', { | 51 ['_toolset=="host"', { |
52 'cflags': [ '>@(clang_warning_flags)' ], | 52 'cflags': [ '>@(clang_warning_flags)' ], |
53 'cflags!': [ '>@(clang_warning_flags_unset)' ], | 53 'cflags!': [ '>@(clang_warning_flags_unset)' ], |
54 }], | 54 }], |
55 ], | 55 ], |
56 }], | 56 }], |
57 ], | 57 ], |
58 } | 58 } |
OLD | NEW |