| 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/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
| 9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 # Put data and code in their own sections, so that unused symbols | 1323 # Put data and code in their own sections, so that unused symbols |
| 1324 # can be removed at link time with --gc-sections. | 1324 # can be removed at link time with --gc-sections. |
| 1325 "-fdata-sections", | 1325 "-fdata-sections", |
| 1326 "-ffunction-sections", | 1326 "-ffunction-sections", |
| 1327 ] | 1327 ] |
| 1328 | 1328 |
| 1329 common_optimize_on_ldflags += [ | 1329 common_optimize_on_ldflags += [ |
| 1330 # Specifically tell the linker to perform optimizations. | 1330 # Specifically tell the linker to perform optimizations. |
| 1331 # See http://lwn.net/Articles/192624/ . | 1331 # See http://lwn.net/Articles/192624/ . |
| 1332 "-Wl,-O1", | 1332 "-Wl,-O1", |
| 1333 "-Wl,--gc-sections", | 1333 # "-Wl,--gc-sections", |
| 1334 ] | 1334 ] |
| 1335 } | 1335 } |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 config("default_stack_frames") { | 1338 config("default_stack_frames") { |
| 1339 if (is_posix && !(is_mac || is_ios)) { | 1339 if (is_posix && !(is_mac || is_ios)) { |
| 1340 if (using_sanitizer || enable_profiling || is_debug || | 1340 if (using_sanitizer || enable_profiling || is_debug || |
| 1341 current_cpu == "arm64") { | 1341 current_cpu == "arm64") { |
| 1342 # Explicitly ask for frame pointers, otherwise: | 1342 # Explicitly ask for frame pointers, otherwise: |
| 1343 # * Stacks may be missing for sanitizer and profiling builds. | 1343 # * Stacks may be missing for sanitizer and profiling builds. |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1639 | 1639 |
| 1640 if (is_ios || is_mac) { | 1640 if (is_ios || is_mac) { |
| 1641 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1641 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1642 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1642 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1643 config("enable_arc") { | 1643 config("enable_arc") { |
| 1644 common_flags = [ "-fobjc-arc" ] | 1644 common_flags = [ "-fobjc-arc" ] |
| 1645 cflags_objc = common_flags | 1645 cflags_objc = common_flags |
| 1646 cflags_objcc = common_flags | 1646 cflags_objcc = common_flags |
| 1647 } | 1647 } |
| 1648 } | 1648 } |
| OLD | NEW |