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

Side by Side Diff: base/allocator/allocator.gyp

Issue 2107016: Revert 47897 - Linux: Add libunwind as a dependency of tcmalloc in 64 bit mod... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 7 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 | « DEPS ('k') | build/all.gyp » ('j') | 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) 2009 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 { 5 {
6 'variables': { 6 'variables': {
7 'jemalloc_dir': '../../third_party/jemalloc/chromium', 7 'jemalloc_dir': '../../third_party/jemalloc/chromium',
8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium',
9 }, 9 },
10 'targets': [ 10 'targets': [
11 { 11 {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 # jemalloc files 172 # jemalloc files
173 '<(jemalloc_dir)/jemalloc.c', 173 '<(jemalloc_dir)/jemalloc.c',
174 '<(jemalloc_dir)/jemalloc.h', 174 '<(jemalloc_dir)/jemalloc.h',
175 '<(jemalloc_dir)/ql.h', 175 '<(jemalloc_dir)/ql.h',
176 '<(jemalloc_dir)/qr.h', 176 '<(jemalloc_dir)/qr.h',
177 '<(jemalloc_dir)/rb.h', 177 '<(jemalloc_dir)/rb.h',
178 178
179 'allocator_shim.cc', 179 'allocator_shim.cc',
180 'generic_allocators.cc', 180 'generic_allocators.cc',
181 'win_allocator.cc', 181 'win_allocator.cc',
182 ], 182 ],
183 # sources! means that these are not compiled directly. 183 # sources! means that these are not compiled directly.
184 'sources!': [ 184 'sources!': [
185 # Included by allocator_shim.cc for maximal inlining. 185 # Included by allocator_shim.cc for maximal inlining.
186 'generic_allocators.cc', 186 'generic_allocators.cc',
187 'win_allocator.cc', 187 'win_allocator.cc',
188 188
189 # We simply don't use these, but list them above so that IDE 189 # We simply don't use these, but list them above so that IDE
190 # users can view the full available source for reference, etc. 190 # users can view the full available source for reference, etc.
191 '<(tcmalloc_dir)/src/addressmap-inl.h', 191 '<(tcmalloc_dir)/src/addressmap-inl.h',
(...skipping 25 matching lines...) Expand all
217 '<(tcmalloc_dir)/src/google/stacktrace.h', 217 '<(tcmalloc_dir)/src/google/stacktrace.h',
218 '<(tcmalloc_dir)/src/memfs_malloc.cc', 218 '<(tcmalloc_dir)/src/memfs_malloc.cc',
219 '<(tcmalloc_dir)/src/packed-cache-inl.h', 219 '<(tcmalloc_dir)/src/packed-cache-inl.h',
220 '<(tcmalloc_dir)/src/page_heap_allocator.h', 220 '<(tcmalloc_dir)/src/page_heap_allocator.h',
221 '<(tcmalloc_dir)/src/pagemap.h', 221 '<(tcmalloc_dir)/src/pagemap.h',
222 '<(tcmalloc_dir)/src/stacktrace_config.h', 222 '<(tcmalloc_dir)/src/stacktrace_config.h',
223 '<(tcmalloc_dir)/src/stacktrace_generic-inl.h', 223 '<(tcmalloc_dir)/src/stacktrace_generic-inl.h',
224 '<(tcmalloc_dir)/src/stacktrace_libunwind-inl.h', 224 '<(tcmalloc_dir)/src/stacktrace_libunwind-inl.h',
225 '<(tcmalloc_dir)/src/stacktrace_powerpc-inl.h', 225 '<(tcmalloc_dir)/src/stacktrace_powerpc-inl.h',
226 '<(tcmalloc_dir)/src/stacktrace_win32-inl.h', 226 '<(tcmalloc_dir)/src/stacktrace_win32-inl.h',
227 '<(tcmalloc_dir)/src/stacktrace_with_context.cc',
227 '<(tcmalloc_dir)/src/stacktrace_x86-inl.h', 228 '<(tcmalloc_dir)/src/stacktrace_x86-inl.h',
228 '<(tcmalloc_dir)/src/stacktrace_x86_64-inl.h', 229 '<(tcmalloc_dir)/src/stacktrace_x86_64-inl.h',
229 '<(tcmalloc_dir)/src/tcmalloc_guard.h', 230 '<(tcmalloc_dir)/src/tcmalloc_guard.h',
230 '<(tcmalloc_dir)/src/windows/config.h', 231 '<(tcmalloc_dir)/src/windows/config.h',
231 '<(tcmalloc_dir)/src/windows/google/tcmalloc.h', 232 '<(tcmalloc_dir)/src/windows/google/tcmalloc.h',
232 '<(tcmalloc_dir)/src/windows/get_mangled_names.cc', 233 '<(tcmalloc_dir)/src/windows/get_mangled_names.cc',
233 '<(tcmalloc_dir)/src/windows/ia32_modrm_map.cc', 234 '<(tcmalloc_dir)/src/windows/ia32_modrm_map.cc',
234 '<(tcmalloc_dir)/src/windows/ia32_opcode_map.cc', 235 '<(tcmalloc_dir)/src/windows/ia32_opcode_map.cc',
235 '<(tcmalloc_dir)/src/windows/mingw.h', 236 '<(tcmalloc_dir)/src/windows/mingw.h',
236 '<(tcmalloc_dir)/src/windows/mini_disassembler.cc', 237 '<(tcmalloc_dir)/src/windows/mini_disassembler.cc',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 'include_dirs': [ 277 'include_dirs': [
277 '<(tcmalloc_dir)/src/windows', 278 '<(tcmalloc_dir)/src/windows',
278 ], 279 ],
279 'sources!': [ 280 'sources!': [
280 '<(tcmalloc_dir)/src/base/linuxthreads.cc', 281 '<(tcmalloc_dir)/src/base/linuxthreads.cc',
281 '<(tcmalloc_dir)/src/base/linuxthreads.h', 282 '<(tcmalloc_dir)/src/base/linuxthreads.h',
282 '<(tcmalloc_dir)/src/base/vdso_support.cc', 283 '<(tcmalloc_dir)/src/base/vdso_support.cc',
283 '<(tcmalloc_dir)/src/base/vdso_support.h', 284 '<(tcmalloc_dir)/src/base/vdso_support.h',
284 '<(tcmalloc_dir)/src/maybe_threads.cc', 285 '<(tcmalloc_dir)/src/maybe_threads.cc',
285 '<(tcmalloc_dir)/src/maybe_threads.h', 286 '<(tcmalloc_dir)/src/maybe_threads.h',
286 '<(tcmalloc_dir)/src/stacktrace_with_context.cc',
287 '<(tcmalloc_dir)/src/symbolize.h', 287 '<(tcmalloc_dir)/src/symbolize.h',
288 '<(tcmalloc_dir)/src/system-alloc.cc', 288 '<(tcmalloc_dir)/src/system-alloc.cc',
289 '<(tcmalloc_dir)/src/system-alloc.h', 289 '<(tcmalloc_dir)/src/system-alloc.h',
290 290
291 # included by allocator_shim.cc 291 # included by allocator_shim.cc
292 '<(tcmalloc_dir)/src/tcmalloc.cc', 292 '<(tcmalloc_dir)/src/tcmalloc.cc',
293 293
294 # heap-profiler/checker/cpuprofiler 294 # heap-profiler/checker/cpuprofiler
295 '<(tcmalloc_dir)/src/base/thread_lister.c', 295 '<(tcmalloc_dir)/src/base/thread_lister.c',
296 '<(tcmalloc_dir)/src/base/thread_lister.h', 296 '<(tcmalloc_dir)/src/base/thread_lister.h',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 ], 332 ],
333 'link_settings': { 333 'link_settings': {
334 'ldflags': [ 334 'ldflags': [
335 # Don't let linker rip this symbol out, otherwise the heap&cpu 335 # Don't let linker rip this symbol out, otherwise the heap&cpu
336 # profilers will not initialize properly on startup. 336 # profilers will not initialize properly on startup.
337 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', 337 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart',
338 # Do the same for heap leak checker. 338 # Do the same for heap leak checker.
339 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', 339 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi',
340 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', 340 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl',
341 ]}, 341 ]},
342 'conditions': [
343 # In 64 bit mode, use libunwind to get stacktraces in TCMalloc if we
344 # don't have the frame pointer.
345 # gcc will disable the frame pointer for O2 optimized 64 bit build.
346 [ 'target_arch=="x64"', {
347 'configurations': {
348 'Release_Base': {
349 'defines': [
350 'NO_FRAME_POINTER',
351 'HAVE_LIBUNWIND_H=1',
352 ],
353 },
354 },
355 'dependencies': [
356 '../../third_party/libunwind/libunwind.gyp:libunwind',
357 ],
358 }],
359 ],
360 }], 342 }],
361 [ 'linux_use_debugallocation==1', { 343 [ 'linux_use_debugallocation==1', {
362 'sources!': [ 344 'sources!': [
363 # debugallocation.cc #includes tcmalloc.cc, 345 # debugallocation.cc #includes tcmalloc.cc,
364 # so only one of them should be used. 346 # so only one of them should be used.
365 '<(tcmalloc_dir)/src/tcmalloc.cc', 347 '<(tcmalloc_dir)/src/tcmalloc.cc',
366 ], 348 ],
367 'cflags': [ 349 'cflags': [
368 '-DTCMALLOC_FOR_DEBUGALLOCATION', 350 '-DTCMALLOC_FOR_DEBUGALLOCATION',
369 ], 351 ],
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 ], 413 ],
432 }], 414 }],
433 ], 415 ],
434 } 416 }
435 417
436 # Local Variables: 418 # Local Variables:
437 # tab-width:2 419 # tab-width:2
438 # indent-tabs-mode:nil 420 # indent-tabs-mode:nil
439 # End: 421 # End:
440 # vim: set expandtab tabstop=2 shiftwidth=2: 422 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « DEPS ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698