| 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/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 Loading... |
| 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 } |
| OLD | NEW |