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

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

Issue 10854031: Support vtable_verify (new compiler option). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add default definition of use_vtable_verify. Created 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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) 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
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 '-Wno-sign-compare',
401 '-Wno-unused-result',
402 '-fvtable-verify=preinit',
403 ],
404 'cflags!': [
405 '-fvtable-verify=std',
Mark Mentovai 2012/08/15 20:21:38 OK, so let’s talk more about this. Where’s your “g
Mark Mentovai 2012/08/15 20:38:36 So then this line, which is supposed to exclude -f
406 ],
407 }],
397 [ 'linux_use_debugallocation==1', { 408 [ 'linux_use_debugallocation==1', {
398 'sources!': [ 409 'sources!': [
399 # debugallocation.cc #includes tcmalloc.cc, 410 # debugallocation.cc #includes tcmalloc.cc,
400 # so only one of them should be used. 411 # so only one of them should be used.
401 '<(tcmalloc_dir)/src/tcmalloc.cc', 412 '<(tcmalloc_dir)/src/tcmalloc.cc',
402 ], 413 ],
403 'defines': [ 414 'defines': [
404 'TCMALLOC_FOR_DEBUGALLOCATION', 415 'TCMALLOC_FOR_DEBUGALLOCATION',
405 ], 416 ],
406 }, { # linux_use_debugallocation != 1 417 }, { # linux_use_debugallocation != 1
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 'dependencies': [ 536 'dependencies': [
526 '../../testing/gtest.gyp:gtest', 537 '../../testing/gtest.gyp:gtest',
527 '../base.gyp:base', 538 '../base.gyp:base',
528 'allocator', 539 'allocator',
529 ], 540 ],
530 }, 541 },
531 ], 542 ],
532 }], 543 }],
533 ], 544 ],
534 } 545 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698