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

Side by Side Diff: build/common.gypi

Issue 212793010: Revert of Set the default ASan options for executables built with ASan on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 | « base/debug/sanitizer_options.cc ('k') | chrome/app/chrome_exe_main_gtk.cc » ('j') | 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 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after
3587 # Functions interposed by the sanitizers can make ld think 3587 # Functions interposed by the sanitizers can make ld think
3588 # that some libraries aren't needed when they actually are, 3588 # that some libraries aren't needed when they actually are,
3589 # http://crbug.com/234010. As workaround, disable --as-needed. 3589 # http://crbug.com/234010. As workaround, disable --as-needed.
3590 '-Wl,--as-needed', 3590 '-Wl,--as-needed',
3591 ], 3591 ],
3592 'defines': [ 3592 'defines': [
3593 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3593 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3594 ], 3594 ],
3595 }], 3595 }],
3596 ], 3596 ],
3597 # TODO(glider): enable the default options on other systems.
3598 'conditions': [
3599 ['OS=="linux"', {
3600 'dependencies': [
3601 '<(DEPTH)/base/base.gyp:sanitizer_options',
3602 ],
3603 }],
3604 ],
3605 }], 3597 }],
3606 ['asan==1', { 3598 ['asan==1', {
3607 'target_conditions': [ 3599 'target_conditions': [
3608 ['_toolset=="target"', { 3600 ['_toolset=="target"', {
3609 'cflags': [ 3601 'cflags': [
3610 '-fsanitize=address', 3602 '-fsanitize=address',
3611 '-w', # http://crbug.com/162783 3603 '-w', # http://crbug.com/162783
3612 ], 3604 ],
3613 'ldflags': [ 3605 'ldflags': [
3614 '-fsanitize=address', 3606 '-fsanitize=address',
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
5160 # settings in target dicts. SYMROOT is a special case, because many other 5152 # settings in target dicts. SYMROOT is a special case, because many other
5161 # Xcode variables depend on it, including variables such as 5153 # Xcode variables depend on it, including variables such as
5162 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5154 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5163 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5155 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5164 # files to appear (when present) in the UI as actual files and not red 5156 # files to appear (when present) in the UI as actual files and not red
5165 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5157 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5166 # and therefore SYMROOT, needs to be set at the project level. 5158 # and therefore SYMROOT, needs to be set at the project level.
5167 'SYMROOT': '<(DEPTH)/xcodebuild', 5159 'SYMROOT': '<(DEPTH)/xcodebuild',
5168 }, 5160 },
5169 } 5161 }
OLDNEW
« no previous file with comments | « base/debug/sanitizer_options.cc ('k') | chrome/app/chrome_exe_main_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698