Index: base/allocator/allocator.gyp |
diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp |
index 37459e07edf411d93c0e49e33502972b22af0960..b5d751eadd4a7bf48d95807740622e2341274ae3 100644 |
--- a/base/allocator/allocator.gyp |
+++ b/base/allocator/allocator.gyp |
@@ -20,6 +20,7 @@ |
# e.g. for profiling (it's more rare to profile Debug builds, |
# but people sometimes need to do that). |
'disable_debugallocation%': 0, |
+ 'use_experimental_allocator_shim%': 0, |
}, |
'targets': [ |
# The only targets that should depend on allocator are 'base' and |
@@ -340,6 +341,11 @@ |
'<(tcmalloc_dir)/src/profiler.cc', |
], |
}], |
+ ['use_experimental_allocator_shim==1', { |
+ 'defines': [ |
+ 'TCMALLOC_DONT_REPLACE_SYSTEM_ALLOC', |
+ ], |
+ }] |
], |
'configurations': { |
'Debug_Base': { |