| OLD | NEW |
| 1 # Copyright (c) 2009 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 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'tcmalloc', | 8 'target_name': 'tcmalloc', |
| 9 'type': '<(library)', | 9 'type': '<(library)', |
| 10 'msvs_guid': 'C564F145-9172-42C3-BFCB-60FDEA124321', | 10 'msvs_guid': 'C564F145-9172-42C3-BFCB-60FDEA124321', |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 # jemalloc files | 225 # jemalloc files |
| 226 'jemalloc/jemalloc.c', | 226 'jemalloc/jemalloc.c', |
| 227 'jemalloc/jemalloc.h', | 227 'jemalloc/jemalloc.h', |
| 228 'jemalloc/ql.h', | 228 'jemalloc/ql.h', |
| 229 'jemalloc/qr.h', | 229 'jemalloc/qr.h', |
| 230 'jemalloc/rb.h', | 230 'jemalloc/rb.h', |
| 231 | 231 |
| 232 # TODO(willchan): Unfork linux. | 232 # TODO(willchan): Unfork linux. |
| 233 'tcmalloc/src/malloc_hook.cc', | 233 'tcmalloc/src/malloc_hook.cc', |
| 234 ], | 234 ], |
| 235 'cflags!': [ |
| 236 '-fvisibility=hidden', |
| 237 ], |
| 235 'link_settings': { | 238 'link_settings': { |
| 236 'ldflags': [ | 239 'ldflags': [ |
| 237 # Don't let linker rip this symbol out, otherwise the heap&cpu | 240 # Don't let linker rip this symbol out, otherwise the heap&cpu |
| 238 # profilers will not initialize properly on startup. | 241 # profilers will not initialize properly on startup. |
| 239 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', | 242 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', |
| 240 # Do the same for heap leak checker. | 243 # Do the same for heap leak checker. |
| 241 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP
KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', | 244 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP
KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', |
| 242 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP
KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', | 245 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP
KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', |
| 243 ], | 246 ], |
| 244 }, | 247 }, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 ], | 294 ], |
| 292 }], | 295 }], |
| 293 ], | 296 ], |
| 294 } | 297 } |
| 295 | 298 |
| 296 # Local Variables: | 299 # Local Variables: |
| 297 # tab-width:2 | 300 # tab-width:2 |
| 298 # indent-tabs-mode:nil | 301 # indent-tabs-mode:nil |
| 299 # End: | 302 # End: |
| 300 # vim: set expandtab tabstop=2 shiftwidth=2: | 303 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |