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

Unified Diff: build/common.gypi

Issue 1414453017: Allocator shims working on VS2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/memory_unittest.cc ('k') | gpu/gles2_conform_support/gles2_conform_support.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index ecf711f3c54a2aa734b0f3194b4e056a8cd08458..85295b41e9e25d90269191cc38737707921b7ae9 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1353,12 +1353,12 @@
'android_lint%': 1,
# Although base/allocator lets you select a heap library via an
- # environment variable, the libcmt shim it uses sometimes gets in
- # the way. To disable it entirely, and switch to normal msvcrt, do e.g.
+ # environment variable, the shim it uses sometimes gets in the way.
+ # To disable it entirely, and switch to normal msvcrt, do e.g.
# 'win_use_allocator_shim': 0,
# 'win_release_RuntimeLibrary': 2
# to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
- 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt
+ 'win_use_allocator_shim%': 1, # 1 = shim allocator; 0 = msvcrt
# Enables the unified allocator shim (experimental) which routes all the
# alloc calls to base/. Right now is supported on Linux Desktop only.
@@ -2016,11 +2016,7 @@
},{
'winsdk_arch%': '<(target_arch)',
}],
- ['component=="shared_library" or MSVS_VERSION == "2015"', {
- # TODO(scottmg): The allocator shimming doesn't work on the 2015 CRT
- # and we are hoping to be able to remove it if an additional feature
- # lands in the 2015 CRT API. For now, don't shim and revisit once
- # VS2015 is RTM: http://crbug.com/481611.
+ ['component=="shared_library"', {
'win_use_allocator_shim%': 0,
}],
['component=="static_library"', {
@@ -2857,11 +2853,6 @@
}], # fieldtrial_testing_like_official_build==0 and branding!="Chrome"
['OS=="win"', {
'defines': ['NO_TCMALLOC'],
- 'conditions': [
- ['win_use_allocator_shim==1', {
- 'defines': ['ALLOCATOR_SHIM'],
- }],
- ],
}],
['asan==1', {
'defines': [
@@ -3529,8 +3520,10 @@
'WTF_USE_DYNAMIC_ANNOTATIONS=1',
],
}],
- ['OS=="win"', {
- 'defines': ['NO_TCMALLOC'],
+ ['OS=="win" and win_use_allocator_shim==1', {
+ 'defines': [
+ 'ALLOCATOR_SHIM'
+ ],
}],
# _FORTIFY_SOURCE isn't really supported by Clang now, see
# http://llvm.org/bugs/show_bug.cgi?id=16821.
« no previous file with comments | « base/process/memory_unittest.cc ('k') | gpu/gles2_conform_support/gles2_conform_support.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698