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, |
11 # e.g. for profiling (it's more rare to profile Debug builds, | 11 # e.g. for profiling (it's more rare to profile Debug builds, |
12 # but people sometimes need to do that). | 12 # but people sometimes need to do that). |
13 enable_debugallocation = is_debug | 13 enable_debugallocation = is_debug |
14 } | 14 } |
15 | 15 |
16 # The Windows-only allocator shim is only enabled for Release static builds, and | 16 # The Windows-only allocator shim is only enabled for Release static builds, and |
17 # is mutually exclusive with the generalized shim. | 17 # is mutually exclusive with the generalized shim. |
18 win_use_allocator_shim = is_win && !is_component_build && !is_debug && | 18 win_use_allocator_shim = is_win && !is_component_build && !is_debug && |
19 !use_experimental_allocator_shim | 19 !use_experimental_allocator_shim && !is_asan |
20 | 20 |
21 # This "allocator" meta-target will forward to the default allocator according | 21 # This "allocator" meta-target will forward to the default allocator according |
22 # to the build settings. | 22 # to the build settings. |
23 group("allocator") { | 23 group("allocator") { |
24 public_deps = [] | 24 public_deps = [] |
25 deps = [] | 25 deps = [] |
26 | 26 |
27 if (use_allocator == "tcmalloc") { | 27 if (use_allocator == "tcmalloc") { |
28 deps += [ ":tcmalloc" ] | 28 deps += [ ":tcmalloc" ] |
29 } | 29 } |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] | 332 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] |
333 } else if (is_android && use_allocator == "none") { | 333 } else if (is_android && use_allocator == "none") { |
334 sources += [ | 334 sources += [ |
335 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", | 335 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", |
336 "allocator_shim_override_linker_wrapped_symbols.h", | 336 "allocator_shim_override_linker_wrapped_symbols.h", |
337 ] | 337 ] |
338 all_dependent_configs = [ ":wrap_malloc_symbols" ] | 338 all_dependent_configs = [ ":wrap_malloc_symbols" ] |
339 } | 339 } |
340 } | 340 } |
341 } | 341 } |
OLD | NEW |