diff options
-rw-r--r-- | build/common.gypi | 2 | ||||
-rwxr-xr-x | chrome/chrome_renderer.gypi | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi index a5a810e..5ebbfc8 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -203,7 +203,7 @@ 'linux_strip_binary%': 0, # Enable TCMalloc. - 'linux_use_tcmalloc%': 0, + 'linux_use_tcmalloc%': 1, # Set to select the Title Case versions of strings in GRD files. 'use_titlecase_in_grd_files%': 0, diff --git a/chrome/chrome_renderer.gypi b/chrome/chrome_renderer.gypi index a9eb009..e955f92 100755 --- a/chrome/chrome_renderer.gypi +++ b/chrome/chrome_renderer.gypi @@ -184,6 +184,14 @@ }], # Linux-specific rules. ['OS=="linux"', { + 'conditions': [ + [ 'linux_use_tcmalloc==1', { + 'dependencies': [ + '../base/allocator/allocator.gyp:allocator', + ], + }, + ], + ], 'dependencies': [ '../build/linux/system.gyp:gtk', '../sandbox/sandbox.gyp:sandbox', |