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

Side by Side Diff: build/common.gypi

Issue 25687005: 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 7 years, 1 month 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
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 3266 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3277 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3278 ], 3278 ],
3279 }], 3279 }],
3280 ['_toolset=="target" and OS=="linux"', { 3280 ['_toolset=="target" and OS=="linux"', {
3281 'ldflags': [ 3281 'ldflags': [
3282 # http://crbug.com/234010. 3282 # http://crbug.com/234010.
3283 '-lrt', 3283 '-lrt',
3284 ], 3284 ],
3285 }], 3285 }],
3286 ], 3286 ],
3287 'dependencies': [
3288 '<(DEPTH)/base/base.gyp:sanitizer_options',
3289 ],
3290 'export_dependent_settings': [
3291 '<(DEPTH)/base/base.gyp:sanitizer_options',
Nico 2013/10/30 04:50:37 Do you need the export bit if everything depends o
Alexander Potapenko 2013/10/30 14:25:55 Probably no. Removed it.
3292 ],
3287 }], 3293 }],
3288 ['asan==1', { 3294 ['asan==1', {
3289 'target_conditions': [ 3295 'target_conditions': [
3290 ['_toolset=="target"', { 3296 ['_toolset=="target"', {
3291 'cflags': [ 3297 'cflags': [
3292 '-fsanitize=address', 3298 '-fsanitize=address',
3293 '-w', # http://crbug.com/162783 3299 '-w', # http://crbug.com/162783
3294 ], 3300 ],
3295 'ldflags': [ 3301 'ldflags': [
3296 '-fsanitize=address', 3302 '-fsanitize=address',
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
4732 # settings in target dicts. SYMROOT is a special case, because many other 4738 # settings in target dicts. SYMROOT is a special case, because many other
4733 # Xcode variables depend on it, including variables such as 4739 # Xcode variables depend on it, including variables such as
4734 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4740 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4735 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4741 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4736 # files to appear (when present) in the UI as actual files and not red 4742 # files to appear (when present) in the UI as actual files and not red
4737 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4743 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4738 # and therefore SYMROOT, needs to be set at the project level. 4744 # and therefore SYMROOT, needs to be set at the project level.
4739 'SYMROOT': '<(DEPTH)/xcodebuild', 4745 'SYMROOT': '<(DEPTH)/xcodebuild',
4740 }, 4746 },
4741 } 4747 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698