| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/allocator.gni") | 6 import("//build/config/allocator.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Provide a way to force disable debugallocation in Debug builds, | 10 # Provide a way to force disable debugallocation in Debug builds, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 "$tcmalloc_dir/src/base/thread_lister.h", | 238 "$tcmalloc_dir/src/base/thread_lister.h", |
| 239 "$tcmalloc_dir/src/profile-handler.cc", | 239 "$tcmalloc_dir/src/profile-handler.cc", |
| 240 "$tcmalloc_dir/src/profile-handler.h", | 240 "$tcmalloc_dir/src/profile-handler.h", |
| 241 "$tcmalloc_dir/src/profiledata.cc", | 241 "$tcmalloc_dir/src/profiledata.cc", |
| 242 "$tcmalloc_dir/src/profiledata.h", | 242 "$tcmalloc_dir/src/profiledata.h", |
| 243 "$tcmalloc_dir/src/profiler.cc", | 243 "$tcmalloc_dir/src/profiler.cc", |
| 244 ] | 244 ] |
| 245 defines += [ "ENABLE_PROFILING=1" ] | 245 defines += [ "ENABLE_PROFILING=1" ] |
| 246 } | 246 } |
| 247 | 247 |
| 248 if (is_linux || is_android) { | 248 if (is_linux || is_android || current_os == "fuchsia") { |
| 249 sources -= [ | 249 sources -= [ |
| 250 "$tcmalloc_dir/src/system-alloc.h", | 250 "$tcmalloc_dir/src/system-alloc.h", |
| 251 "$tcmalloc_dir/src/windows/port.cc", | 251 "$tcmalloc_dir/src/windows/port.cc", |
| 252 "$tcmalloc_dir/src/windows/port.h", | 252 "$tcmalloc_dir/src/windows/port.h", |
| 253 ] | 253 ] |
| 254 | 254 |
| 255 # Compiling tcmalloc with -fvisibility=default is only necessary when | 255 # Compiling tcmalloc with -fvisibility=default is only necessary when |
| 256 # not using the allocator shim, which provides the correct visibility | 256 # not using the allocator shim, which provides the correct visibility |
| 257 # annotations for those symbols which need to be exported (see | 257 # annotations for those symbols which need to be exported (see |
| 258 # //base/allocator/allocator_shim_override_glibc_weak_symbols.h and | 258 # //base/allocator/allocator_shim_override_glibc_weak_symbols.h and |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 "-Wl,-wrap,calloc", | 300 "-Wl,-wrap,calloc", |
| 301 "-Wl,-wrap,free", | 301 "-Wl,-wrap,free", |
| 302 "-Wl,-wrap,malloc", | 302 "-Wl,-wrap,malloc", |
| 303 "-Wl,-wrap,memalign", | 303 "-Wl,-wrap,memalign", |
| 304 "-Wl,-wrap,posix_memalign", | 304 "-Wl,-wrap,posix_memalign", |
| 305 "-Wl,-wrap,pvalloc", | 305 "-Wl,-wrap,pvalloc", |
| 306 "-Wl,-wrap,realloc", | 306 "-Wl,-wrap,realloc", |
| 307 "-Wl,-wrap,valloc", | 307 "-Wl,-wrap,valloc", |
| 308 ] | 308 ] |
| 309 } | 309 } |
| OLD | NEW |