Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: base/allocator/BUILD.gn

Issue 1835433002: GN: Force use_allocator="none" in NaCl toolchains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 if (is_win) { 9 if (is_win) {
10 import("//build/config/win/visual_studio_version.gni") 10 import("//build/config/win/visual_studio_version.gni")
11 } 11 }
12 12
13 declare_args() { 13 declare_args() {
14 # Provide a way to force disable debugallocation in Debug builds, 14 # Provide a way to force disable debugallocation in Debug builds,
15 # e.g. for profiling (it's more rare to profile Debug builds, 15 # e.g. for profiling (it's more rare to profile Debug builds,
16 # but people sometimes need to do that). 16 # but people sometimes need to do that).
17 enable_debugallocation = is_debug 17 enable_debugallocation = is_debug
18 } 18 }
19 19
20 # This "allocator" meta-target will forward to the default allocator according 20 # This "allocator" meta-target will forward to the default allocator according
21 # to the build settings. 21 # to the build settings.
22 group("allocator") { 22 group("allocator") {
23 if (!is_nacl) { 23 deps = []
24 deps = []
25 24
26 if (use_allocator == "tcmalloc") { 25 if (use_allocator == "tcmalloc") {
27 deps += [ ":tcmalloc" ] 26 deps += [ ":tcmalloc" ]
28 } 27 }
29 28
30 # This condition expresses the win_use_allocator_shim in the GYP build. 29 # This condition expresses the win_use_allocator_shim in the GYP build.
31 if (is_win && !is_component_build && visual_studio_version != "2015") { 30 if (is_win && !is_component_build && visual_studio_version != "2015") {
32 deps += [ ":allocator_shim" ] 31 deps += [ ":allocator_shim" ]
33 all_dependent_configs = [ ":nocmt" ] 32 all_dependent_configs = [ ":nocmt" ]
34 } 33 }
35 } # !is_nacl
36 } 34 }
37 35
38 # This config defines ALLOCATOR_SHIM in the same conditions that the allocator 36 # This config defines ALLOCATOR_SHIM in the same conditions that the allocator
39 # shim will be used by the allocator target. 37 # shim will be used by the allocator target.
40 # 38 #
41 # TODO(brettw) this is only used in one place and is kind of mess, because it 39 # TODO(brettw) this is only used in one place and is kind of mess, because it
42 # assumes that the library using it will eventually be linked with 40 # assumes that the library using it will eventually be linked with
43 # //base/allocator in the default way. Clean this up and delete this. 41 # //base/allocator in the default way. Clean this up and delete this.
44 config("allocator_shim_define") { 42 config("allocator_shim_define") {
45 if (is_win && !is_component_build && visual_studio_version != "2015") { 43 if (is_win && !is_component_build && visual_studio_version != "2015") {
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 "allocator_shim_override_glibc_weak_symbols.h", 318 "allocator_shim_override_glibc_weak_symbols.h",
321 ] 319 ]
322 deps = [ 320 deps = [
323 ":tcmalloc", 321 ":tcmalloc",
324 ] 322 ]
325 } else if (is_linux && use_allocator == "none") { 323 } else if (is_linux && use_allocator == "none") {
326 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] 324 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ]
327 } 325 }
328 } 326 }
329 } 327 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698