| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 # Disable the heap checker in tcmalloc. | 210 # Disable the heap checker in tcmalloc. |
| 211 defines = [ "NO_HEAP_CHECK" ] | 211 defines = [ "NO_HEAP_CHECK" ] |
| 212 | 212 |
| 213 include_dirs = [ | 213 include_dirs = [ |
| 214 ".", | 214 ".", |
| 215 "$tcmalloc_dir/src/base", | 215 "$tcmalloc_dir/src/base", |
| 216 "$tcmalloc_dir/src", | 216 "$tcmalloc_dir/src", |
| 217 ] | 217 ] |
| 218 | 218 |
| 219 configs -= [ | 219 configs -= [ "//build/config/compiler:chromium_code" ] |
| 220 "//build/config/compiler:chromium_code", | |
| 221 | |
| 222 # Thumb mode disabled due to bug in clang integrated assembler | |
| 223 # TODO(https://llvm.org/bugs/show_bug.cgi?id=31058) | |
| 224 "//build/config/compiler:compiler_arm_thumb", | |
| 225 ] | |
| 226 configs += [ | 220 configs += [ |
| 227 "//build/config/compiler:no_chromium_code", | 221 "//build/config/compiler:no_chromium_code", |
| 228 ":tcmalloc_flags", | 222 ":tcmalloc_flags", |
| 229 ] | 223 ] |
| 230 | 224 |
| 225 # Thumb mode disabled due to bug in clang integrated assembler |
| 226 # TODO(https://llvm.org/bugs/show_bug.cgi?id=31058) |
| 227 configs -= [ "//build/config/compiler:compiler_arm_thumb" ] |
| 228 configs += [ "//build/config/compiler:compiler_arm" ] |
| 229 |
| 231 # TODO(crbug.com/633719) Make tcmalloc work with AFDO if possible. | 230 # TODO(crbug.com/633719) Make tcmalloc work with AFDO if possible. |
| 232 configs -= [ "//build/config/compiler:afdo" ] | 231 configs -= [ "//build/config/compiler:afdo" ] |
| 233 | 232 |
| 234 deps = [] | 233 deps = [] |
| 235 | 234 |
| 236 if (enable_profiling) { | 235 if (enable_profiling) { |
| 237 sources += [ | 236 sources += [ |
| 238 "$tcmalloc_dir/src/base/thread_lister.c", | 237 "$tcmalloc_dir/src/base/thread_lister.c", |
| 239 "$tcmalloc_dir/src/base/thread_lister.h", | 238 "$tcmalloc_dir/src/base/thread_lister.h", |
| 240 "$tcmalloc_dir/src/profile-handler.cc", | 239 "$tcmalloc_dir/src/profile-handler.cc", |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] | 340 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] |
| 342 } else if (is_android && use_allocator == "none") { | 341 } else if (is_android && use_allocator == "none") { |
| 343 sources += [ | 342 sources += [ |
| 344 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", | 343 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", |
| 345 "allocator_shim_override_linker_wrapped_symbols.h", | 344 "allocator_shim_override_linker_wrapped_symbols.h", |
| 346 ] | 345 ] |
| 347 all_dependent_configs = [ ":wrap_malloc_symbols" ] | 346 all_dependent_configs = [ ":wrap_malloc_symbols" ] |
| 348 } | 347 } |
| 349 } | 348 } |
| 350 } | 349 } |
| OLD | NEW |