| 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 28 matching lines...) Expand all Loading... |
| 39 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", | 39 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", |
| 40 root_build_dir) | 40 root_build_dir) |
| 41 | 41 |
| 42 # Compile in such a way as to make it possible for the profiler to unwind full | 42 # Compile in such a way as to make it possible for the profiler to unwind full |
| 43 # stack frames. Setting this flag has a large effect on the performance of the | 43 # stack frames. Setting this flag has a large effect on the performance of the |
| 44 # generated code than just setting profiling, but gives the profiler more | 44 # generated code than just setting profiling, but gives the profiler more |
| 45 # information to analyze. | 45 # information to analyze. |
| 46 # Requires profiling to be set to true. | 46 # Requires profiling to be set to true. |
| 47 enable_full_stack_frames_for_profiling = false | 47 enable_full_stack_frames_for_profiling = false |
| 48 | 48 |
| 49 # TODO: We should be using 64-bit gold for linking on both 64-bit Linux | 49 # Whether to use the gold linker from binutils instead of lld or bfd. |
| 50 # and 32-bit linux; 32-bit Gold runs out of address-space on 32-bit builds. | |
| 51 # However, something isn't quite working right on the 32-bit builds. | |
| 52 use_gold = | 50 use_gold = |
| 53 is_linux && (current_cpu == "x64" || current_cpu == "arm") && !use_lld | 51 !use_lld && is_linux && |
| 52 (current_cpu == "x64" || current_cpu == "x86" || current_cpu == "arm") |
| 54 | 53 |
| 55 # When we are going to use gold we need to find it. | 54 # When we are going to use gold we need to find it. |
| 56 # This is initialized below, after use_gold might have been overridden. | 55 # This is initialized below, after use_gold might have been overridden. |
| 57 gold_path = false | 56 gold_path = false |
| 58 | 57 |
| 59 # use_debug_fission: whether to use split DWARF debug info | 58 # use_debug_fission: whether to use split DWARF debug info |
| 60 # files. This can reduce link time significantly, but is incompatible | 59 # files. This can reduce link time significantly, but is incompatible |
| 61 # with some utilities such as icecc and ccache. Requires gold and | 60 # with some utilities such as icecc and ccache. Requires gold and |
| 62 # gcc >= 4.8 or clang. | 61 # gcc >= 4.8 or clang. |
| 63 # http://gcc.gnu.org/wiki/DebugFission | 62 # http://gcc.gnu.org/wiki/DebugFission |
| (...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 | 1464 |
| 1466 if (is_ios || is_mac) { | 1465 if (is_ios || is_mac) { |
| 1467 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1466 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1468 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1467 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1469 config("enable_arc") { | 1468 config("enable_arc") { |
| 1470 common_flags = [ "-fobjc-arc" ] | 1469 common_flags = [ "-fobjc-arc" ] |
| 1471 cflags_objc = common_flags | 1470 cflags_objc = common_flags |
| 1472 cflags_objcc = common_flags | 1471 cflags_objcc = common_flags |
| 1473 } | 1472 } |
| 1474 } | 1473 } |
| OLD | NEW |