| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 configs += [ "//build/config/compiler:optimize_max" ] | 298 configs += [ "//build/config/compiler:optimize_max" ] |
| 299 } | 299 } |
| 300 | 300 |
| 301 deps += [ "//base/third_party/dynamic_annotations" ] | 301 deps += [ "//base/third_party/dynamic_annotations" ] |
| 302 | 302 |
| 303 if (is_win) { | 303 if (is_win) { |
| 304 ldflags = [ "/ignore:4006:4221" ] | 304 ldflags = [ "/ignore:4006:4221" ] |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 } # !is_android | 307 } # !is_android |
| 308 | |
| 309 source_set("extension_thunks") { | |
| 310 visibility = [ "//base/*" ] | |
| 311 sources = [ | |
| 312 "allocator_extension_thunks.cc", | |
| 313 "allocator_extension_thunks.h", | |
| 314 ] | |
| 315 if (is_android && !is_debug) { | |
| 316 configs -= [ "//build/config/compiler:default_optimization" ] | |
| 317 configs += [ "//build/config/compiler:optimize_max" ] | |
| 318 } | |
| 319 } | |
| OLD | NEW |