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

Side by Side Diff: build/common.gypi

Issue 327803005: Update the default GYP flags for sanitizer tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 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 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 ['enable_mdns==1 or OS=="mac"', { 2035 ['enable_mdns==1 or OS=="mac"', {
2036 'grit_defines': ['-D', 'enable_service_discovery'], 2036 'grit_defines': ['-D', 'enable_service_discovery'],
2037 'enable_service_discovery%': 1 2037 'enable_service_discovery%': 1
2038 }], 2038 }],
2039 ['clang_use_chrome_plugins==1 and OS!="win"', { 2039 ['clang_use_chrome_plugins==1 and OS!="win"', {
2040 'clang_chrome_plugins_flags': [ 2040 'clang_chrome_plugins_flags': [
2041 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' 2041 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
2042 ], 2042 ],
2043 }], 2043 }],
2044 2044
2045 ['asan==1', { 2045 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
2046 'clang%': 1, 2046 'clang%': 1,
2047 'use_allocator%': 'none', 2047 'use_allocator%': 'none',
2048 }], 2048 }],
2049 ['ubsan==1', { 2049 ['ubsan==1', {
2050 'clang%': 1, 2050 'clang%': 1,
2051 }], 2051 }],
2052 ['asan==1 and OS=="mac"', { 2052 ['asan==1 and OS=="mac"', {
2053 # TODO(glider): we do not strip ASan binaries until the dynamic ASan 2053 # TODO(glider): we do not strip ASan binaries until the dynamic ASan
2054 # runtime is fully adopted. See http://crbug.com/242503. 2054 # runtime is fully adopted. See http://crbug.com/242503.
2055 'mac_strip_release': 0, 2055 'mac_strip_release': 0,
2056 }], 2056 }],
2057 ['lsan==1', {
2058 'clang%': 1,
2059 }],
2060 ['tsan==1', { 2057 ['tsan==1', {
2061 'clang%': 1,
2062 'use_custom_libcxx%': 1, 2058 'use_custom_libcxx%': 1,
2063 }], 2059 }],
2064 ['msan==1', { 2060 ['msan==1', {
2065 'clang%': 1, 2061 # Use a just-built, MSan-instrumented libc++ instead of the system-wide
2062 # libstdc++. This is required to avoid false positive reports whenever
2063 # the C++ standard library is used.
2064 'use_custom_libcxx%': 1,
2065 # Running the V8-generated code on an ARM simulator is a powerful hack
2066 # that allows the tool to see the memory accesses from JITted code.
2067 # Without this flag, JS code causes false positive reports from MSan.
2068 'v8_target_arch': 'arm64',
2066 }], 2069 }],
2067 2070
2068 ['OS=="linux" and clang_type_profiler==1', { 2071 ['OS=="linux" and clang_type_profiler==1', {
2069 'clang%': 1, 2072 'clang%': 1,
2070 'clang_use_chrome_plugins%': 0, 2073 'clang_use_chrome_plugins%': 0,
2071 'conditions': [ 2074 'conditions': [
2072 ['host_arch=="x64"', { 2075 ['host_arch=="x64"', {
2073 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', 2076 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64',
2074 }], 2077 }],
2075 ['host_arch=="ia32"', { 2078 ['host_arch=="ia32"', {
(...skipping 3386 matching lines...) Expand 10 before | Expand all | Expand 10 after
5462 # settings in target dicts. SYMROOT is a special case, because many other 5465 # settings in target dicts. SYMROOT is a special case, because many other
5463 # Xcode variables depend on it, including variables such as 5466 # Xcode variables depend on it, including variables such as
5464 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5467 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5465 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5468 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5466 # files to appear (when present) in the UI as actual files and not red 5469 # files to appear (when present) in the UI as actual files and not red
5467 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5470 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5468 # and therefore SYMROOT, needs to be set at the project level. 5471 # and therefore SYMROOT, needs to be set at the project level.
5469 'SYMROOT': '<(DEPTH)/xcodebuild', 5472 'SYMROOT': '<(DEPTH)/xcodebuild',
5470 }, 5473 },
5471 } 5474 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698