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

Side by Side Diff: build/common.gypi

Issue 871973004: win: Make asan work with isolates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « base/base.isolate ('k') | 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 5531 matching lines...) Expand 10 before | Expand all | Expand 10 after
5542 '-Wno-unsequenced', 5542 '-Wno-unsequenced',
5543 '-Wno-unused-function', 5543 '-Wno-unused-function',
5544 '-Wno-unused-private-field', 5544 '-Wno-unused-private-field',
5545 '-Wno-unused-value', 5545 '-Wno-unused-value',
5546 '-Wno-unused-variable', 5546 '-Wno-unused-variable',
5547 '-Wno-unused-local-typedef', # http://crbug.com/411648 5547 '-Wno-unused-local-typedef', # http://crbug.com/411648
5548 '-Wno-inconsistent-missing-override', #http://crbug.com/428099 5548 '-Wno-inconsistent-missing-override', #http://crbug.com/428099
5549 ], 5549 ],
5550 }, 5550 },
5551 }], 5551 }],
5552 ['asan==1', {
5553 # ASan on Windows is a work in progress and very experimental.
5554 # See crbug.com/345874.
5555 'VCCLCompilerTool': {
5556 'AdditionalOptions': [
5557 '-fsanitize=address',
5558 ],
5559 'AdditionalIncludeDirectories': [
5560 # MSVC needs to be able to find the sanitizer headers when
5561 # invoked via /fallback. This is critical for using macros
5562 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall
5563 # back.
5564 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/include_sanitizer' ,
5565 ],
5566 },
5567 'VCLinkerTool': {
5568 'AdditionalLibraryDirectories': [
5569 # TODO(hans): If make_clang_dir is absolute, this breaks.
5570 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/lib/windows',
5571 ],
5572 },
5573 'target_conditions': [
5574 ['component=="shared_library"', {
5575 'VCLinkerTool': {
5576 'AdditionalDependencies': [
5577 'clang_rt.asan_dynamic-i386.lib',
5578 'clang_rt.asan_dynamic_runtime_thunk-i386.lib',
5579 ],
5580 },
5581 }],
5582 ['_type=="executable" and component=="static_library"', {
5583 'VCLinkerTool': {
5584 'AdditionalDependencies': [
5585 'clang_rt.asan-i386.lib',
5586 ],
5587 },
5588 }],
5589 ['(_type=="shared_library" or _type=="loadable_module") and comp onent=="static_library"', {
5590 'VCLinkerTool': {
5591 'AdditionalDependencies': [
5592 'clang_rt.asan_dll_thunk-i386.lib',
5593 ],
5594 },
5595 }],
5596 ],
5597 }],
5598 ], 5552 ],
5599 }, 5553 },
5600 }, 5554 },
5601 }], 5555 }],
5602 ['disable_nacl==1', { 5556 ['disable_nacl==1', {
5603 'target_defaults': { 5557 'target_defaults': {
5604 'defines': [ 5558 'defines': [
5605 'DISABLE_NACL', 5559 'DISABLE_NACL',
5606 ], 5560 ],
5607 }, 5561 },
5608 }], 5562 }],
5609 ['OS=="win" and msvs_use_common_linker_extras', { 5563 ['OS=="win" and msvs_use_common_linker_extras', {
5610 'target_defaults': { 5564 'target_defaults': {
5611 'msvs_settings': { 5565 'msvs_settings': {
5612 'VCLinkerTool': { 5566 'VCLinkerTool': {
5613 'DelayLoadDLLs': [ 5567 'DelayLoadDLLs': [
5614 'dbghelp.dll', 5568 'dbghelp.dll',
5615 'dwmapi.dll', 5569 'dwmapi.dll',
5616 'shell32.dll', 5570 'shell32.dll',
5617 'uxtheme.dll', 5571 'uxtheme.dll',
5618 ], 5572 ],
5619 }, 5573 },
5620 }, 5574 },
5621 'configurations': { 5575 'configurations': {
5622 'x86_Base': { 5576 'x86_Base': {
Nico 2015/01/23 23:02:41 This is now in x86_Base instead of being in the de
5623 'msvs_settings': { 5577 'msvs_settings': {
5624 'VCLinkerTool': { 5578 'VCLinkerTool': {
5625 'AdditionalOptions': [ 5579 'AdditionalOptions': [
5626 '/safeseh', 5580 '/safeseh',
5627 '/dynamicbase', 5581 '/dynamicbase',
5628 '/ignore:4199', 5582 '/ignore:4199',
5629 '/ignore:4221', 5583 '/ignore:4221',
5630 '/nxcompat', 5584 '/nxcompat',
5631 ], 5585 ],
5632 'conditions': [ 5586 },
5633 ['syzyasan==0', { 5587 'conditions': [
5588 ['syzyasan==0', {
5589 'VCLinkerTool': {
5634 'AdditionalOptions': ['/largeaddressaware'], 5590 'AdditionalOptions': ['/largeaddressaware'],
5635 }], 5591 },
5636 ], 5592 }],
5637 }, 5593 ['asan==1', {
5594 # TODO(asan/win): Move this down into the general
5595 # win-target_defaults section once the 64-bit asan runtime
5596 # exists. See crbug.com/345874.
5597 'VCCLCompilerTool': {
5598 'AdditionalOptions': [
5599 '-fsanitize=address',
5600 ],
5601 'AdditionalIncludeDirectories': [
5602 # MSVC needs to be able to find the sanitizer headers when
5603 # invoked via /fallback. This is critical for using macros
5604 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall
5605 # back.
5606 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/include_saniti zer',
5607 ],
5608 },
5609 'VCLinkerTool': {
5610 'AdditionalLibraryDirectories': [
5611 # TODO(hans): If make_clang_dir is absolute, this breaks.
5612 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/lib/windows',
5613 ],
5614 },
5615 'target_conditions': [
5616 ['component=="shared_library"', {
5617 'VCLinkerTool': {
5618 'AdditionalDependencies': [
5619 'clang_rt.asan_dynamic-i386.lib',
5620 'clang_rt.asan_dynamic_runtime_thunk-i386.lib',
5621 ],
5622 },
5623 }],
5624 ['_type=="executable" and component=="static_library"', {
5625 'VCLinkerTool': {
5626 'AdditionalDependencies': [
5627 'clang_rt.asan-i386.lib',
5628 ],
5629 },
5630 }],
5631 ['(_type=="shared_library" or _type=="loadable_module") and component=="static_library"', {
5632 'VCLinkerTool': {
5633 'AdditionalDependencies': [
5634 'clang_rt.asan_dll_thunk-i386.lib',
5635 ],
5636 },
5637 }],
5638 ],
5639 }],
5640 ],
5638 }, 5641 },
5639 }, 5642 },
5640 'x64_Base': { 5643 'x64_Base': {
5641 'msvs_settings': { 5644 'msvs_settings': {
5642 'VCLinkerTool': { 5645 'VCLinkerTool': {
5643 'AdditionalOptions': [ 5646 'AdditionalOptions': [
5644 # safeseh is not compatible with x64 5647 # safeseh is not compatible with x64
5645 '/dynamicbase', 5648 '/dynamicbase',
5646 '/ignore:4199', 5649 '/ignore:4199',
5647 '/ignore:4221', 5650 '/ignore:4221',
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
5864 # settings in target dicts. SYMROOT is a special case, because many other 5867 # settings in target dicts. SYMROOT is a special case, because many other
5865 # Xcode variables depend on it, including variables such as 5868 # Xcode variables depend on it, including variables such as
5866 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5869 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5867 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5870 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5868 # files to appear (when present) in the UI as actual files and not red 5871 # files to appear (when present) in the UI as actual files and not red
5869 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5872 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5870 # and therefore SYMROOT, needs to be set at the project level. 5873 # and therefore SYMROOT, needs to be set at the project level.
5871 'SYMROOT': '<(DEPTH)/xcodebuild', 5874 'SYMROOT': '<(DEPTH)/xcodebuild',
5872 }, 5875 },
5873 } 5876 }
OLDNEW
« no previous file with comments | « base/base.isolate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698