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

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

Issue 1324623005: Move sanitizer and symbol flags out of BUILDCONFIG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « base/BUILD.gn ('k') | base/third_party/dynamic_annotations/BUILD.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/config/allocator.gni") 5 import("//build/config/allocator.gni")
6 6
7 declare_args() { 7 declare_args() {
8 # Provide a way to force disable debugallocation in Debug builds, 8 # Provide a way to force disable debugallocation in Debug builds,
9 # e.g. for profiling (it's more rare to profile Debug builds, 9 # e.g. for profiling (it's more rare to profile Debug builds,
10 # but people sometimes need to do that). 10 # but people sometimes need to do that).
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 # Do the same for heap leak checker. 280 # Do the same for heap leak checker.
281 "-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_j iiix,-u_Z22InitialMallocHook_SbrkPKvi", 281 "-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapPKvS0_j iiix,-u_Z22InitialMallocHook_SbrkPKvi",
282 "-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_m iiil,-u_Z22InitialMallocHook_SbrkPKvl", 282 "-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapPKvS0_m iiil,-u_Z22InitialMallocHook_SbrkPKvl",
283 "-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14Un IgnoreObjectEPKv", 283 "-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14Un IgnoreObjectEPKv",
284 ] 284 ]
285 } 285 }
286 286
287 # Make sure the allocation library is optimized as much as possible when 287 # Make sure the allocation library is optimized as much as possible when
288 # we"re in release mode. 288 # we"re in release mode.
289 if (!is_debug) { 289 if (!is_debug) {
290 configs -= [ "//build/config/compiler:optimize" ] 290 configs -= [ "//build/config/compiler:default_optimization" ]
291 configs += [ "//build/config/compiler:optimize_max" ] 291 configs += [ "//build/config/compiler:optimize_max" ]
292 } 292 }
293 293
294 deps += [ "//base/third_party/dynamic_annotations" ] 294 deps += [ "//base/third_party/dynamic_annotations" ]
295 295
296 if (is_win) { 296 if (is_win) {
297 ldflags = [ "/ignore:4006:4221" ] 297 ldflags = [ "/ignore:4006:4221" ]
298 } 298 }
299 } 299 }
300 } # !is_android 300 } # !is_android
301 301
302 source_set("allocator_extension_thunks") { 302 source_set("allocator_extension_thunks") {
303 visibility = [ "//base/*" ] 303 visibility = [ "//base/*" ]
304 sources = [ 304 sources = [
305 "allocator_extension_thunks.cc", 305 "allocator_extension_thunks.cc",
306 "allocator_extension_thunks.h", 306 "allocator_extension_thunks.h",
307 ] 307 ]
308 if (is_android && !is_debug) { 308 if (is_android && !is_debug) {
309 configs -= [ "//build/config/compiler:optimize" ] 309 configs -= [ "//build/config/compiler:default_optimization" ]
310 configs += [ "//build/config/compiler:optimize_max" ] 310 configs += [ "//build/config/compiler:optimize_max" ]
311 } 311 }
312 } 312 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/third_party/dynamic_annotations/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698