Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 83a3df61a14b7a282dbc5af352c47e6fbfef0d9e..117700229d750c77765b22537bd5974bf64aa3d9 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1258,7 +1258,7 @@ |
# '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%': 0, # 1 = shim allocator via libcmt; 0 = msvcrt |
+ 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt |
# TODO(bradnelson): eliminate this when possible. |
# To allow local gyp files to prevent release.vsprops from being included. |
@@ -1956,6 +1956,8 @@ |
# Native Client loader for 64-bit Windows. |
'NACL_WIN64', |
], |
+ # Need to include allocator target, but exclude tcmalloc files. |
+ 'use_allocator%': 'winheap', |
}], |
['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded==0', { |
@@ -2768,10 +2770,11 @@ |
['tracing_like_official_build!=0', { |
'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], |
}], # tracing_like_official_build!=0 |
- ['win_use_allocator_shim==0', { |
+ ['OS=="win"', { |
+ 'defines': ['NO_TCMALLOC'], |
'conditions': [ |
- ['OS=="win"', { |
- 'defines': ['NO_TCMALLOC'], |
+ ['win_use_allocator_shim==1', { |
+ 'defines': ['ALLOCATOR_SHIM'], |
}], |
], |
}], |
@@ -3429,7 +3432,7 @@ |
'WTF_USE_DYNAMIC_ANNOTATIONS=1', |
], |
}], |
- ['OS=="win" and win_use_allocator_shim==0', { |
+ ['OS=="win"', { |
'defines': ['NO_TCMALLOC'], |
}], |
# _FORTIFY_SOURCE isn't really supported by Clang now, see |