| 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 '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': [ |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 '<(tcmalloc_dir)/src/tcmalloc.cc', | 347 '<(tcmalloc_dir)/src/tcmalloc.cc', |
| 348 ], | 348 ], |
| 349 'cflags': [ | 349 'cflags': [ |
| 350 '-DTCMALLOC_FOR_DEBUGALLOCATION', | 350 '-DTCMALLOC_FOR_DEBUGALLOCATION', |
| 351 ], | 351 ], |
| 352 }, { # linux_use_debugallocation != 1 | 352 }, { # linux_use_debugallocation != 1 |
| 353 'sources!': [ | 353 'sources!': [ |
| 354 '<(tcmalloc_dir)/src/debugallocation.cc', | 354 '<(tcmalloc_dir)/src/debugallocation.cc', |
| 355 ], | 355 ], |
| 356 }], | 356 }], |
| 357 [ 'linux_keep_shadow_stacks==1', { |
| 358 'sources': [ |
| 359 '<(tcmalloc_dir)/src/linux_shadow_stacks.cc', |
| 360 '<(tcmalloc_dir)/src/linux_shadow_stacks.h', |
| 361 '<(tcmalloc_dir)/src/stacktrace_shadow-inl.h', |
| 362 ], |
| 363 'cflags': [ |
| 364 '-finstrument-functions', |
| 365 '-DKEEP_SHADOW_STACKS', |
| 366 ], |
| 367 }], |
| 357 [ 'linux_use_heapchecker==0', { | 368 [ 'linux_use_heapchecker==0', { |
| 358 # Do not compile and link the heapchecker source. | 369 # Do not compile and link the heapchecker source. |
| 359 'sources!': [ | 370 'sources!': [ |
| 360 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', | 371 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', |
| 361 '<(tcmalloc_dir)/src/heap-checker.cc', | 372 '<(tcmalloc_dir)/src/heap-checker.cc', |
| 362 ], | 373 ], |
| 363 # Disable the heap checker in tcmalloc. | 374 # Disable the heap checker in tcmalloc. |
| 364 'cflags': [ | 375 'cflags': [ |
| 365 '-DNO_HEAP_CHECK', | 376 '-DNO_HEAP_CHECK', |
| 366 ], | 377 ], |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 ], | 424 ], |
| 414 }], | 425 }], |
| 415 ], | 426 ], |
| 416 } | 427 } |
| 417 | 428 |
| 418 # Local Variables: | 429 # Local Variables: |
| 419 # tab-width:2 | 430 # tab-width:2 |
| 420 # indent-tabs-mode:nil | 431 # indent-tabs-mode:nil |
| 421 # End: | 432 # End: |
| 422 # vim: set expandtab tabstop=2 shiftwidth=2: | 433 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |