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

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

Issue 2515503002: Disable thumb when building tcmalloc (Closed)
Patch Set: Created 4 years, 1 month 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/config/BUILDCONFIG.gn » ('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 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
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 -= [ "//build/config/compiler:chromium_code" ] 219 configs -= [
220 "//build/config/compiler:chromium_code",
221 "//build/config/compiler:compiler_arm_thumb",
brettw 2016/11/17 21:52:04 Can you comment here why this is removed?
222 ]
220 configs += [ 223 configs += [
221 "//build/config/compiler:no_chromium_code", 224 "//build/config/compiler:no_chromium_code",
222 ":tcmalloc_flags", 225 ":tcmalloc_flags",
223 ] 226 ]
224 227
225 # TODO(crbug.com/633719) Make tcmalloc work with AFDO if possible. 228 # TODO(crbug.com/633719) Make tcmalloc work with AFDO if possible.
226 configs -= [ "//build/config/compiler:afdo" ] 229 configs -= [ "//build/config/compiler:afdo" ]
227 230
228 deps = [] 231 deps = []
229 232
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] 338 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ]
336 } else if (is_android && use_allocator == "none") { 339 } else if (is_android && use_allocator == "none") {
337 sources += [ 340 sources += [
338 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", 341 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc",
339 "allocator_shim_override_linker_wrapped_symbols.h", 342 "allocator_shim_override_linker_wrapped_symbols.h",
340 ] 343 ]
341 all_dependent_configs = [ ":wrap_malloc_symbols" ] 344 all_dependent_configs = [ ":wrap_malloc_symbols" ]
342 } 345 }
343 } 346 }
344 } 347 }
OLDNEW
« no previous file with comments | « no previous file | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698