| 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 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 # example, don't omit the frame pointer and leave in symbols. | 37 # example, don't omit the frame pointer and leave in symbols. |
| 38 enable_profiling = false | 38 enable_profiling = false |
| 39 | 39 |
| 40 # Compile in such a way as to make it possible for the profiler to unwind full | 40 # Compile in such a way as to make it possible for the profiler to unwind full |
| 41 # stack frames. Setting this flag has a large effect on the performance of the | 41 # stack frames. Setting this flag has a large effect on the performance of the |
| 42 # generated code than just setting profiling, but gives the profiler more | 42 # generated code than just setting profiling, but gives the profiler more |
| 43 # information to analyze. | 43 # information to analyze. |
| 44 # Requires profiling to be set to true. | 44 # Requires profiling to be set to true. |
| 45 enable_full_stack_frames_for_profiling = false | 45 enable_full_stack_frames_for_profiling = false |
| 46 | 46 |
| 47 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of | 47 # Use 64-bit gold for linking on both 64-bit Linux and 32-bit linux; |
| 48 # address space, and it doesn't support cross-compiling). | 48 # 32-bit Gold runs out of address-space on 32-bit bit builds. |
| 49 use_gold = is_linux && current_cpu == "x64" | 49 use_gold = is_linux && (current_cpu == "x64" || current_cpu == "x86") |
| 50 | 50 |
| 51 # When we are going to use gold we need to find it. | 51 # When we are going to use gold we need to find it. |
| 52 if (use_gold) { | 52 if (use_gold) { |
| 53 gold_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", | 53 gold_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", |
| 54 root_build_dir) | 54 root_build_dir) |
| 55 } else { | 55 } else { |
| 56 gold_path = "" | 56 gold_path = "" |
| 57 } | 57 } |
| 58 | 58 |
| 59 # use_debug_fission: whether to use split DWARF debug info | 59 # use_debug_fission: whether to use split DWARF debug info |
| (...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 cflags += [ "-gsplit-dwarf" ] | 1411 cflags += [ "-gsplit-dwarf" ] |
| 1412 } | 1412 } |
| 1413 } | 1413 } |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 config("no_symbols") { | 1416 config("no_symbols") { |
| 1417 if (!is_win) { | 1417 if (!is_win) { |
| 1418 cflags = [ "-g0" ] | 1418 cflags = [ "-g0" ] |
| 1419 } | 1419 } |
| 1420 } | 1420 } |
| OLD | NEW |