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

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

Issue 1549913002: tcmalloc: Use C++11 atomics where appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually Created 4 years, 12 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
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/config/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Provide a way to force disable debugallocation in Debug builds, 9 # Provide a way to force disable debugallocation in Debug builds,
10 # e.g. for profiling (it's more rare to profile Debug builds, 10 # e.g. for profiling (it's more rare to profile Debug builds,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 # and checked in. 115 # and checked in.
116 "$tcmalloc_dir/src/config.h", 116 "$tcmalloc_dir/src/config.h",
117 "$tcmalloc_dir/src/config_android.h", 117 "$tcmalloc_dir/src/config_android.h",
118 "$tcmalloc_dir/src/config_linux.h", 118 "$tcmalloc_dir/src/config_linux.h",
119 "$tcmalloc_dir/src/config_win.h", 119 "$tcmalloc_dir/src/config_win.h",
120 120
121 # tcmalloc native and forked files. 121 # tcmalloc native and forked files.
122 "$tcmalloc_dir/src/base/abort.cc", 122 "$tcmalloc_dir/src/base/abort.cc",
123 "$tcmalloc_dir/src/base/abort.h", 123 "$tcmalloc_dir/src/base/abort.h",
124 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", 124 "$tcmalloc_dir/src/base/arm_instruction_set_select.h",
125 "$tcmalloc_dir/src/base/atomicops-internals-arm-generic.h",
126 "$tcmalloc_dir/src/base/atomicops-internals-arm-v6plus.h",
127 "$tcmalloc_dir/src/base/atomicops-internals-linuxppc.h",
128 "$tcmalloc_dir/src/base/atomicops-internals-macosx.h", 125 "$tcmalloc_dir/src/base/atomicops-internals-macosx.h",
129 "$tcmalloc_dir/src/base/atomicops-internals-windows.h", 126 "$tcmalloc_dir/src/base/atomicops-internals-windows.h",
130 "$tcmalloc_dir/src/base/atomicops-internals-x86.cc",
131 "$tcmalloc_dir/src/base/atomicops-internals-x86.h",
132 "$tcmalloc_dir/src/base/atomicops.h", 127 "$tcmalloc_dir/src/base/atomicops.h",
128 "$tcmalloc_dir/src/base/atomicops_internals_portable.h",
133 "$tcmalloc_dir/src/base/basictypes.h", 129 "$tcmalloc_dir/src/base/basictypes.h",
134 "$tcmalloc_dir/src/base/commandlineflags.h", 130 "$tcmalloc_dir/src/base/commandlineflags.h",
135 "$tcmalloc_dir/src/base/cycleclock.h", 131 "$tcmalloc_dir/src/base/cycleclock.h",
136 132
137 # We don't list dynamic_annotations.c since its copy is already 133 # We don't list dynamic_annotations.c since its copy is already
138 # present in the dynamic_annotations target. 134 # present in the dynamic_annotations target.
139 "$tcmalloc_dir/src/base/elf_mem_image.cc", 135 "$tcmalloc_dir/src/base/elf_mem_image.cc",
140 "$tcmalloc_dir/src/base/elf_mem_image.h", 136 "$tcmalloc_dir/src/base/elf_mem_image.h",
141 "$tcmalloc_dir/src/base/linuxthreads.cc", 137 "$tcmalloc_dir/src/base/linuxthreads.cc",
142 "$tcmalloc_dir/src/base/linuxthreads.h", 138 "$tcmalloc_dir/src/base/linuxthreads.h",
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 # Make sure the allocation library is optimized as much as possible when 264 # Make sure the allocation library is optimized as much as possible when
269 # we"re in release mode. 265 # we"re in release mode.
270 if (!is_debug) { 266 if (!is_debug) {
271 configs -= [ "//build/config/compiler:default_optimization" ] 267 configs -= [ "//build/config/compiler:default_optimization" ]
272 configs += [ "//build/config/compiler:optimize_max" ] 268 configs += [ "//build/config/compiler:optimize_max" ]
273 } 269 }
274 270
275 deps += [ "//base/third_party/dynamic_annotations" ] 271 deps += [ "//base/third_party/dynamic_annotations" ]
276 } 272 }
277 } # !is_android 273 } # !is_android
OLDNEW
« no previous file with comments | « no previous file | base/allocator/allocator.gyp » ('j') | third_party/tcmalloc/chromium/src/base/atomicops_internals_portable.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698