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

Unified Diff: base/base.gyp

Issue 173387: Linux: add gyp flag for enabling tcmalloc. (Closed)
Patch Set: Disable tc_mallinfo since it breaks windows. Created 11 years, 4 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 | « no previous file | build/all.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base.gyp
diff --git a/base/base.gyp b/base/base.gyp
index 7be1225eb2ccfa02545573b8fb0badeeb1d8dbe9..bf6d9d2464a4b817602b1fba277e4accf9101947 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -365,6 +365,9 @@
],
'conditions': [
[ 'OS == "linux"', {
+ 'variables' : {
+ 'linux_use_tcmalloc%': 0,
+ },
'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
['exclude', '\\.mm?$' ] ],
'sources!': [
@@ -378,6 +381,12 @@
'sources/': [ ['include', '_chromeos\\.cc$'] ]
},
],
+ [ 'linux_use_tcmalloc==1', {
+ 'dependencies': [
+ '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
+ ],
+ },
+ ],
],
'dependencies': [
'../build/util/build_util.gyp:lastchange',
« no previous file with comments | « no previous file | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698