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

Side by Side Diff: build/common.gypi

Issue 1334002: Add the linux_use_heapchecker GYP variable that should turn the tcmalloc heap... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/build_config.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 'variables': { 9 'variables': {
10 # .gyp files or targets should set chromium_code to 1 if they build 10 # .gyp files or targets should set chromium_code to 1 if they build
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 # Set this to true to enable SELinux support. 199 # Set this to true to enable SELinux support.
200 'selinux%': 0, 200 'selinux%': 0,
201 201
202 # Strip the binary after dumping symbols. 202 # Strip the binary after dumping symbols.
203 'linux_strip_binary%': 0, 203 'linux_strip_binary%': 0,
204 204
205 # Enable TCMalloc. 205 # Enable TCMalloc.
206 'linux_use_tcmalloc%': 1, 206 'linux_use_tcmalloc%': 1,
207 207
208 # Disable TCMalloc's heapchecker.
209 'linux_use_heapchecker%': 0,
210
208 # Set to select the Title Case versions of strings in GRD files. 211 # Set to select the Title Case versions of strings in GRD files.
209 'use_titlecase_in_grd_files%': 0, 212 'use_titlecase_in_grd_files%': 0,
210 213
211 # Used to disable Native Client at compile time, for platforms where it 214 # Used to disable Native Client at compile time, for platforms where it
212 # isn't supported 215 # isn't supported
213 'disable_nacl%': 0, 216 'disable_nacl%': 0,
214 217
215 # Set Thumb compilation flags. 218 # Set Thumb compilation flags.
216 'arm_thumb%': 0, 219 'arm_thumb%': 0,
217 220
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 # When building with shared libraries, remove the visiblity-hiding 961 # When building with shared libraries, remove the visiblity-hiding
959 # flag. 962 # flag.
960 'cflags!': [ '-fvisibility=hidden' ], 963 'cflags!': [ '-fvisibility=hidden' ],
961 'conditions': [ 964 'conditions': [
962 ['target_arch=="x64" or target_arch=="arm"', { 965 ['target_arch=="x64" or target_arch=="arm"', {
963 # Shared libraries need -fPIC on x86-64 and arm 966 # Shared libraries need -fPIC on x86-64 and arm
964 'cflags': ['-fPIC'] 967 'cflags': ['-fPIC']
965 }] 968 }]
966 ], 969 ],
967 }], 970 }],
971 ['linux_use_heapchecker==1', {
972 'variables': {'linux_use_tcmalloc%': 1},
973 }],
968 ['linux_use_tcmalloc==0', { 974 ['linux_use_tcmalloc==0', {
969 'defines': ['NO_TCMALLOC'], 975 'defines': ['NO_TCMALLOC'],
970 }], 976 }],
977 ['linux_use_heapchecker==0', {
978 'defines': ['NO_HEAPCHECKER'],
979 }],
971 ], 980 ],
972 }, 981 },
973 }], 982 }],
974 # FreeBSD-specific options; note that most FreeBSD options are set above, 983 # FreeBSD-specific options; note that most FreeBSD options are set above,
975 # with Linux. 984 # with Linux.
976 ['OS=="freebsd"', { 985 ['OS=="freebsd"', {
977 'target_defaults': { 986 'target_defaults': {
978 'ldflags': [ 987 'ldflags': [
979 '-Wl,--no-keep-memory', 988 '-Wl,--no-keep-memory',
980 ], 989 ],
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 # and therefore SYMROOT, needs to be set at the project level. 1242 # and therefore SYMROOT, needs to be set at the project level.
1234 'SYMROOT': '<(DEPTH)/xcodebuild', 1243 'SYMROOT': '<(DEPTH)/xcodebuild',
1235 }, 1244 },
1236 } 1245 }
1237 1246
1238 # Local Variables: 1247 # Local Variables:
1239 # tab-width:2 1248 # tab-width:2
1240 # indent-tabs-mode:nil 1249 # indent-tabs-mode:nil
1241 # End: 1250 # End:
1242 # vim: set expandtab tabstop=2 shiftwidth=2: 1251 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « build/build_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698