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

Side by Side Diff: build/common.gypi

Issue 11416192: Use new -fsanitize=address instead of deprecated -faddress-sanitizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 | chrome/browser/ui/fullscreen/fullscreen_controller_interactive_browsertest.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 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 ['clang==1 and "<(GENERATOR)"=="ninja"', { 2693 ['clang==1 and "<(GENERATOR)"=="ninja"', {
2694 'cflags': [ 2694 'cflags': [
2695 # See http://crbug.com/110262 2695 # See http://crbug.com/110262
2696 '-fcolor-diagnostics', 2696 '-fcolor-diagnostics',
2697 ], 2697 ],
2698 }], 2698 }],
2699 ['asan==1', { 2699 ['asan==1', {
2700 'target_conditions': [ 2700 'target_conditions': [
2701 ['_toolset=="target"', { 2701 ['_toolset=="target"', {
2702 'cflags': [ 2702 'cflags': [
2703 '-faddress-sanitizer', 2703 '-fsanitize=address',
2704 '-fno-omit-frame-pointer', 2704 '-fno-omit-frame-pointer',
2705 # See http://crbug.com/159580 2705 '-w', # http://crbug.com/162783
2706 '-w',
2707 ], 2706 ],
2708 'ldflags': [ 2707 'ldflags': [
2709 '-faddress-sanitizer', 2708 '-fsanitize=address',
2710 ], 2709 ],
2711 'defines': [ 2710 'defines': [
2712 'ADDRESS_SANITIZER', 2711 'ADDRESS_SANITIZER',
2713 ], 2712 ],
2714 }], 2713 }],
2715 ], 2714 ],
2716 }], 2715 }],
2717 ['tsan==1', { 2716 ['tsan==1', {
2718 'target_conditions': [ 2717 'target_conditions': [
2719 ['_toolset=="target"', { 2718 ['_toolset=="target"', {
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
3157 ], 3156 ],
3158 }], 3157 }],
3159 ], 3158 ],
3160 }], 3159 }],
3161 # Settings for building host targets using the system toolchain. 3160 # Settings for building host targets using the system toolchain.
3162 ['_toolset=="host"', { 3161 ['_toolset=="host"', {
3163 'cflags!': [ 3162 'cflags!': [
3164 # Due to issues in Clang build system, using ASan on 32-bit 3163 # Due to issues in Clang build system, using ASan on 32-bit
3165 # binaries on x86_64 host is problematic. 3164 # binaries on x86_64 host is problematic.
3166 # TODO(eugenis): re-enable. 3165 # TODO(eugenis): re-enable.
3167 '-faddress-sanitizer', 3166 '-fsanitize=address',
3168 # See http://crbug.com/159580 3167 '-w', # http://crbug.com/162783
3169 '-w',
3170 ], 3168 ],
3171 'ldflags!': [ 3169 'ldflags!': [
3172 '-faddress-sanitizer', 3170 '-faddress-sanitizer',
3173 '-Wl,-z,noexecstack', 3171 '-Wl,-z,noexecstack',
3174 '-Wl,--gc-sections', 3172 '-Wl,--gc-sections',
3175 '-Wl,-O1', 3173 '-Wl,-O1',
3176 '-Wl,--as-needed', 3174 '-Wl,--as-needed',
3177 ], 3175 ],
3178 'sources/': [ 3176 'sources/': [
3179 ['exclude', '_android(_unittest)?\\.cc$'], 3177 ['exclude', '_android(_unittest)?\\.cc$'],
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
3280 }, 3278 },
3281 'conditions': [ 3279 'conditions': [
3282 ['clang==1', { 3280 ['clang==1', {
3283 'variables': { 3281 'variables': {
3284 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', 3282 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin',
3285 }, 3283 },
3286 }], 3284 }],
3287 ['asan==1', { 3285 ['asan==1', {
3288 'xcode_settings': { 3286 'xcode_settings': {
3289 'OTHER_CFLAGS': [ 3287 'OTHER_CFLAGS': [
3290 '-faddress-sanitizer', 3288 '-fsanitize=address',
3291 # See http://crbug.com/159580 3289 '-w', # http://crbug.com/162783
3292 '-w',
3293 ], 3290 ],
3294 }, 3291 },
3295 'defines': [ 3292 'defines': [
3296 'ADDRESS_SANITIZER', 3293 'ADDRESS_SANITIZER',
3297 ], 3294 ],
3298 }], 3295 }],
3299 ], 3296 ],
3300 'target_conditions': [ 3297 'target_conditions': [
3301 ['_type!="static_library"', { 3298 ['_type!="static_library"', {
3302 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 3299 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
3881 # settings in target dicts. SYMROOT is a special case, because many other 3878 # settings in target dicts. SYMROOT is a special case, because many other
3882 # Xcode variables depend on it, including variables such as 3879 # Xcode variables depend on it, including variables such as
3883 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3880 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3884 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3881 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3885 # files to appear (when present) in the UI as actual files and not red 3882 # files to appear (when present) in the UI as actual files and not red
3886 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3883 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3887 # and therefore SYMROOT, needs to be set at the project level. 3884 # and therefore SYMROOT, needs to be set at the project level.
3888 'SYMROOT': '<(DEPTH)/xcodebuild', 3885 'SYMROOT': '<(DEPTH)/xcodebuild',
3889 }, 3886 },
3890 } 3887 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/fullscreen/fullscreen_controller_interactive_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698