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 28 matching lines...) Expand all Loading... |
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 } |
OLD | NEW |