OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'use_vtable_verify%': 0, |
9 }, | 10 }, |
10 'targets': [ | 11 'targets': [ |
11 { | 12 { |
12 'target_name': 'allocator', | 13 'target_name': 'allocator', |
13 'type': 'static_library', | 14 'type': 'static_library', |
14 # Make sure the allocation library is optimized to | 15 # Make sure the allocation library is optimized to |
15 # the hilt in official builds. | 16 # the hilt in official builds. |
16 'variables': { | 17 'variables': { |
17 'optimize': 'max', | 18 'optimize': 'max', |
18 }, | 19 }, |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 'ldflags': [ | 388 'ldflags': [ |
388 # Don't let linker rip this symbol out, otherwise the heap&cpu | 389 # Don't let linker rip this symbol out, otherwise the heap&cpu |
389 # profilers will not initialize properly on startup. | 390 # profilers will not initialize properly on startup. |
390 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', | 391 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', |
391 # Do the same for heap leak checker. | 392 # Do the same for heap leak checker. |
392 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP
KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', | 393 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP
KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', |
393 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP
KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', | 394 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP
KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', |
394 '-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakCheck
er14UnIgnoreObjectEPKv', | 395 '-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakCheck
er14UnIgnoreObjectEPKv', |
395 ]}, | 396 ]}, |
396 }], | 397 }], |
| 398 [ 'use_vtable_verify==1', { |
| 399 'cflags': [ |
| 400 '-fvtable-verify=preinit', |
| 401 ], |
| 402 }], |
397 [ 'linux_use_debugallocation==1', { | 403 [ 'linux_use_debugallocation==1', { |
398 'sources!': [ | 404 'sources!': [ |
399 # debugallocation.cc #includes tcmalloc.cc, | 405 # debugallocation.cc #includes tcmalloc.cc, |
400 # so only one of them should be used. | 406 # so only one of them should be used. |
401 '<(tcmalloc_dir)/src/tcmalloc.cc', | 407 '<(tcmalloc_dir)/src/tcmalloc.cc', |
402 ], | 408 ], |
403 'defines': [ | 409 'defines': [ |
404 'TCMALLOC_FOR_DEBUGALLOCATION', | 410 'TCMALLOC_FOR_DEBUGALLOCATION', |
405 ], | 411 ], |
406 }, { # linux_use_debugallocation != 1 | 412 }, { # linux_use_debugallocation != 1 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 'dependencies': [ | 531 'dependencies': [ |
526 '../../testing/gtest.gyp:gtest', | 532 '../../testing/gtest.gyp:gtest', |
527 '../base.gyp:base', | 533 '../base.gyp:base', |
528 'allocator', | 534 'allocator', |
529 ], | 535 ], |
530 }, | 536 }, |
531 ], | 537 ], |
532 }], | 538 }], |
533 ], | 539 ], |
534 } | 540 } |
OLD | NEW |