| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 # If this is set, the clang plugins used on the buildbot will be used. | 346 # If this is set, the clang plugins used on the buildbot will be used. |
| 347 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 347 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
| 348 # This causes 'clang_chrome_plugins_flags' to be set. | 348 # This causes 'clang_chrome_plugins_flags' to be set. |
| 349 # Has no effect if 'clang' is not set as well. | 349 # Has no effect if 'clang' is not set as well. |
| 350 'clang_use_chrome_plugins%': 1, | 350 'clang_use_chrome_plugins%': 1, |
| 351 | 351 |
| 352 # Enable building with ASAN (Clang's -fsanitize=address option). | 352 # Enable building with ASAN (Clang's -fsanitize=address option). |
| 353 # -fsanitize=address only works with clang, but asan=1 implies clang=1 | 353 # -fsanitize=address only works with clang, but asan=1 implies clang=1 |
| 354 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 354 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
| 355 'asan%': 0, | 355 'asan%': 0, |
| 356 # Enable coverage gathering instrumentation in ASan. | 356 # Enable coverage gathering instrumentation in ASan. This flag also |
| 357 # controls coverage granularity (experimental). |
| 357 'asan_coverage%': 0, | 358 'asan_coverage%': 0, |
| 358 | 359 |
| 359 # Enable building with LSan (Clang's -fsanitize=leak option). | 360 # Enable building with LSan (Clang's -fsanitize=leak option). |
| 360 # -fsanitize=leak only works with clang, but lsan=1 implies clang=1 | 361 # -fsanitize=leak only works with clang, but lsan=1 implies clang=1 |
| 361 # See https://sites.google.com/a/chromium.org/dev/developers/testing/leaks
anitizer | 362 # See https://sites.google.com/a/chromium.org/dev/developers/testing/leaks
anitizer |
| 362 'lsan%': 0, | 363 'lsan%': 0, |
| 363 | 364 |
| 364 # Enable building with TSAN (Clang's -fsanitize=thread option). | 365 # Enable building with TSAN (Clang's -fsanitize=thread option). |
| 365 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 | 366 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 |
| 366 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 367 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
| (...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3449 ], | 3450 ], |
| 3450 'ldflags': [ | 3451 'ldflags': [ |
| 3451 '-fsanitize=address', | 3452 '-fsanitize=address', |
| 3452 ], | 3453 ], |
| 3453 'defines': [ | 3454 'defines': [ |
| 3454 'ADDRESS_SANITIZER', | 3455 'ADDRESS_SANITIZER', |
| 3455 ], | 3456 ], |
| 3456 }], | 3457 }], |
| 3457 ], | 3458 ], |
| 3458 }], | 3459 }], |
| 3459 ['asan_coverage==1', { | 3460 ['asan_coverage!=0', { |
| 3460 'target_conditions': [ | 3461 'target_conditions': [ |
| 3461 ['_toolset=="target"', { | 3462 ['_toolset=="target"', { |
| 3462 'cflags': [ | 3463 'cflags': [ |
| 3463 '-mllvm -asan-coverage=1', | 3464 '-mllvm -asan-coverage=<(asan_coverage)', |
| 3464 ], | 3465 ], |
| 3465 }], | 3466 }], |
| 3466 ], | 3467 ], |
| 3467 }], | 3468 }], |
| 3468 ['lsan==1', { | 3469 ['lsan==1', { |
| 3469 'target_conditions': [ | 3470 'target_conditions': [ |
| 3470 ['_toolset=="target"', { | 3471 ['_toolset=="target"', { |
| 3471 'cflags': [ | 3472 'cflags': [ |
| 3472 '-fsanitize=leak', | 3473 '-fsanitize=leak', |
| 3473 ], | 3474 ], |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4113 'OTHER_CFLAGS': [ | 4114 'OTHER_CFLAGS': [ |
| 4114 '-fsanitize=address', | 4115 '-fsanitize=address', |
| 4115 '-w', # http://crbug.com/162783 | 4116 '-w', # http://crbug.com/162783 |
| 4116 ], | 4117 ], |
| 4117 }, | 4118 }, |
| 4118 'defines': [ | 4119 'defines': [ |
| 4119 'ADDRESS_SANITIZER', | 4120 'ADDRESS_SANITIZER', |
| 4120 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 4121 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 4121 ], | 4122 ], |
| 4122 }], | 4123 }], |
| 4123 ['asan_coverage==1', { | 4124 ['asan_coverage!=0', { |
| 4124 'target_conditions': [ | 4125 'target_conditions': [ |
| 4125 ['_toolset=="target"', { | 4126 ['_toolset=="target"', { |
| 4126 'cflags': [ | 4127 'cflags': [ |
| 4127 '-mllvm -asan-coverage=1', | 4128 '-mllvm -asan-coverage=<(asan_coverage)', |
| 4128 ], | 4129 ], |
| 4129 }], | 4130 }], |
| 4130 ], | 4131 ], |
| 4131 }], | 4132 }], |
| 4132 ], | 4133 ], |
| 4133 'target_conditions': [ | 4134 'target_conditions': [ |
| 4134 ['_type!="static_library"', { | 4135 ['_type!="static_library"', { |
| 4135 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 4136 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 4136 'conditions': [ | 4137 'conditions': [ |
| 4137 ['asan==1', { | 4138 ['asan==1', { |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4837 # settings in target dicts. SYMROOT is a special case, because many other | 4838 # settings in target dicts. SYMROOT is a special case, because many other |
| 4838 # Xcode variables depend on it, including variables such as | 4839 # Xcode variables depend on it, including variables such as |
| 4839 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4840 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4841 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4841 # files to appear (when present) in the UI as actual files and not red | 4842 # files to appear (when present) in the UI as actual files and not red |
| 4842 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4843 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4843 # and therefore SYMROOT, needs to be set at the project level. | 4844 # and therefore SYMROOT, needs to be set at the project level. |
| 4844 'SYMROOT': '<(DEPTH)/xcodebuild', | 4845 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4845 }, | 4846 }, |
| 4846 } | 4847 } |
| OLD | NEW |