OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 }], | 2229 }], |
2230 ], | 2230 ], |
2231 }, | 2231 }, |
2232 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ', | 2232 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ', |
2233 }, { # OS == "win" | 2233 }, { # OS == "win" |
2234 # On Windows, the plugin is built directly into clang, so there's | 2234 # On Windows, the plugin is built directly into clang, so there's |
2235 # no need to load it dynamically. | 2235 # no need to load it dynamically. |
2236 'clang_dynlib_flags%': '', | 2236 'clang_dynlib_flags%': '', |
2237 }], | 2237 }], |
2238 ], | 2238 ], |
2239 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang
check-templates', | 2239 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang
check-templates ' |
| 2240 '-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansio
n ', |
2240 }, | 2241 }, |
2241 # If you change these, also change build/config/clang/BUILD.gn. | 2242 # If you change these, also change build/config/clang/BUILD.gn. |
2242 'clang_chrome_plugins_flags%': | 2243 'clang_chrome_plugins_flags%': |
2243 '<(clang_dynlib_flags)' | 2244 '<(clang_dynlib_flags)' |
2244 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)'
, | 2245 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)'
, |
2245 }], | 2246 }], |
2246 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2247 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
2247 'clang%': 1, | 2248 'clang%': 1, |
2248 'use_allocator%': 'none', | 2249 'use_allocator%': 'none', |
2249 'use_sanitizer_options%': 1, | 2250 'use_sanitizer_options%': 1, |
(...skipping 4138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6388 # settings in target dicts. SYMROOT is a special case, because many other | 6389 # settings in target dicts. SYMROOT is a special case, because many other |
6389 # Xcode variables depend on it, including variables such as | 6390 # Xcode variables depend on it, including variables such as |
6390 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6391 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6391 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6392 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6392 # files to appear (when present) in the UI as actual files and not red | 6393 # files to appear (when present) in the UI as actual files and not red |
6393 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6394 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6394 # and therefore SYMROOT, needs to be set at the project level. | 6395 # and therefore SYMROOT, needs to be set at the project level. |
6395 'SYMROOT': '<(DEPTH)/xcodebuild', | 6396 'SYMROOT': '<(DEPTH)/xcodebuild', |
6396 }, | 6397 }, |
6397 } | 6398 } |
OLD | NEW |