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

Side by Side Diff: build/common.gypi

Issue 774683003: Remove tcmalloc when not being used. Restore shim on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resurrect tcmalloc_unittest on linux 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
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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 1251
1252 # Set to 1 to enable running Android lint on java/class files. 1252 # Set to 1 to enable running Android lint on java/class files.
1253 'android_lint%': 1, 1253 'android_lint%': 1,
1254 1254
1255 # Although base/allocator lets you select a heap library via an 1255 # Although base/allocator lets you select a heap library via an
1256 # environment variable, the libcmt shim it uses sometimes gets in 1256 # environment variable, the libcmt shim it uses sometimes gets in
1257 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. 1257 # the way. To disable it entirely, and switch to normal msvcrt, do e.g.
1258 # 'win_use_allocator_shim': 0, 1258 # 'win_use_allocator_shim': 0,
1259 # 'win_release_RuntimeLibrary': 2 1259 # 'win_release_RuntimeLibrary': 2
1260 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. 1260 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
1261 'win_use_allocator_shim%': 0, # 1 = shim allocator via libcmt; 0 = msvcrt 1261 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt
1262 1262
1263 # TODO(bradnelson): eliminate this when possible. 1263 # TODO(bradnelson): eliminate this when possible.
1264 # To allow local gyp files to prevent release.vsprops from being included. 1264 # To allow local gyp files to prevent release.vsprops from being included.
1265 # Yes(1) means include release.vsprops. 1265 # Yes(1) means include release.vsprops.
1266 # Once all vsprops settings are migrated into gyp, this can go away. 1266 # Once all vsprops settings are migrated into gyp, this can go away.
1267 'msvs_use_common_release%': 1, 1267 'msvs_use_common_release%': 1,
1268 1268
1269 # TODO(bradnelson): eliminate this when possible. 1269 # TODO(bradnelson): eliminate this when possible.
1270 # To allow local gyp files to override additional linker options for msvs. 1270 # To allow local gyp files to override additional linker options for msvs.
1271 # Yes(1) means set use the common linker options. 1271 # Yes(1) means set use the common linker options.
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 'msvs_large_module_debug_link_mode%': '1', # No 1949 'msvs_large_module_debug_link_mode%': '1', # No
1950 },{ 1950 },{
1951 'msvs_large_module_debug_link_mode%': '2', # Yes 1951 'msvs_large_module_debug_link_mode%': '2', # Yes
1952 }], 1952 }],
1953 ], 1953 ],
1954 'nacl_win64_defines': [ 1954 'nacl_win64_defines': [
1955 # This flag is used to minimize dependencies when building 1955 # This flag is used to minimize dependencies when building
1956 # Native Client loader for 64-bit Windows. 1956 # Native Client loader for 64-bit Windows.
1957 'NACL_WIN64', 1957 'NACL_WIN64',
1958 ], 1958 ],
1959 # Need to include allocator target, but exclude tcmalloc files.
1960 'use_allocator%': 'winheap',
1959 }], 1961 }],
1960 1962
1961 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded ==0', { 1963 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded ==0', {
1962 'use_cups%': 1, 1964 'use_cups%': 1,
1963 }, { 1965 }, {
1964 'use_cups%': 0, 1966 'use_cups%': 0,
1965 }], 1967 }],
1966 1968
1967 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { 1969 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
1968 'enable_pepper_cdms%': 1, 1970 'enable_pepper_cdms%': 1,
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 'defines': [ 2763 'defines': [
2762 'DONT_EMBED_BUILD_METADATA', 2764 'DONT_EMBED_BUILD_METADATA',
2763 ], 2765 ],
2764 }], # dont_embed_build_metadata==1 2766 }], # dont_embed_build_metadata==1
2765 ['dcheck_always_on!=0', { 2767 ['dcheck_always_on!=0', {
2766 'defines': ['DCHECK_ALWAYS_ON=1'], 2768 'defines': ['DCHECK_ALWAYS_ON=1'],
2767 }], # dcheck_always_on!=0 2769 }], # dcheck_always_on!=0
2768 ['tracing_like_official_build!=0', { 2770 ['tracing_like_official_build!=0', {
2769 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], 2771 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'],
2770 }], # tracing_like_official_build!=0 2772 }], # tracing_like_official_build!=0
2771 ['win_use_allocator_shim==0', { 2773 ['OS=="win"', {
2774 'defines': ['NO_TCMALLOC'],
2772 'conditions': [ 2775 'conditions': [
2773 ['OS=="win"', { 2776 ['win_use_allocator_shim==1', {
2774 'defines': ['NO_TCMALLOC'], 2777 'defines': ['ALLOCATOR_SHIM'],
2775 }], 2778 }],
2776 ], 2779 ],
2777 }], 2780 }],
2778 ['asan==1', { 2781 ['asan==1', {
2779 'defines': [ 2782 'defines': [
2780 'ADDRESS_SANITIZER', 2783 'ADDRESS_SANITIZER',
2781 'MEMORY_TOOL_REPLACES_ALLOCATOR', 2784 'MEMORY_TOOL_REPLACES_ALLOCATOR',
2782 'MEMORY_SANITIZER_INITIAL_SIZE', 2785 'MEMORY_SANITIZER_INITIAL_SIZE',
2783 ], 2786 ],
2784 }], 2787 }],
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 'DYNAMIC_ANNOTATIONS_ENABLED=0', 3425 'DYNAMIC_ANNOTATIONS_ENABLED=0',
3423 ], 3426 ],
3424 }, { 3427 }, {
3425 'defines': [ 3428 'defines': [
3426 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3429 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3427 'MEMORY_SANITIZER_INITIAL_SIZE', 3430 'MEMORY_SANITIZER_INITIAL_SIZE',
3428 'DYNAMIC_ANNOTATIONS_ENABLED=1', 3431 'DYNAMIC_ANNOTATIONS_ENABLED=1',
3429 'WTF_USE_DYNAMIC_ANNOTATIONS=1', 3432 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
3430 ], 3433 ],
3431 }], 3434 }],
3432 ['OS=="win" and win_use_allocator_shim==0', { 3435 ['OS=="win"', {
3433 'defines': ['NO_TCMALLOC'], 3436 'defines': ['NO_TCMALLOC'],
3434 }], 3437 }],
3435 # _FORTIFY_SOURCE isn't really supported by Clang now, see 3438 # _FORTIFY_SOURCE isn't really supported by Clang now, see
3436 # http://llvm.org/bugs/show_bug.cgi?id=16821. 3439 # http://llvm.org/bugs/show_bug.cgi?id=16821.
3437 # It seems to work fine with Ubuntu 12 headers though, so use it 3440 # It seems to work fine with Ubuntu 12 headers though, so use it
3438 # in official builds. 3441 # in official builds.
3439 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubs an!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', { 3442 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubs an!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', {
3440 'target_conditions': [ 3443 'target_conditions': [
3441 ['chromium_code==1', { 3444 ['chromium_code==1', {
3442 # Non-chromium code is not guaranteed to compile cleanly 3445 # Non-chromium code is not guaranteed to compile cleanly
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
5844 # settings in target dicts. SYMROOT is a special case, because many other 5847 # settings in target dicts. SYMROOT is a special case, because many other
5845 # Xcode variables depend on it, including variables such as 5848 # Xcode variables depend on it, including variables such as
5846 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5849 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5847 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5850 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5848 # files to appear (when present) in the UI as actual files and not red 5851 # files to appear (when present) in the UI as actual files and not red
5849 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5852 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5850 # and therefore SYMROOT, needs to be set at the project level. 5853 # and therefore SYMROOT, needs to be set at the project level.
5851 'SYMROOT': '<(DEPTH)/xcodebuild', 5854 'SYMROOT': '<(DEPTH)/xcodebuild',
5852 }, 5855 },
5853 } 5856 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698