OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
8 import("//build/config/compiler/pgo/pgo.gni") | 8 import("//build/config/compiler/pgo/pgo.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 import("//build/toolchain/goma.gni") | 10 import("//build/toolchain/goma.gni") |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 # Note that doing a link repro uses a lot of disk space and slows down the | 58 # Note that doing a link repro uses a lot of disk space and slows down the |
59 # build, so this shouldn't be enabled on too many targets. | 59 # build, so this shouldn't be enabled on too many targets. |
60 # | 60 # |
61 # See crbug.com/669854. | 61 # See crbug.com/669854. |
62 linkrepro_root_dir = "" | 62 linkrepro_root_dir = "" |
63 | 63 |
64 # Whether or not we should use position independent code. | 64 # Whether or not we should use position independent code. |
65 use_pic = true | 65 use_pic = true |
66 } | 66 } |
67 | 67 |
| 68 # Whether to emit frame pointers by default. |
| 69 if (is_mac || is_ios) { |
| 70 enabled_frame_pointers = true |
| 71 } else if (is_win) { |
| 72 # 64-bit Windows ABI doesn't support frame pointers. |
| 73 if (target_cpu == "x64") { |
| 74 enabled_frame_pointers = false |
| 75 } else { |
| 76 enabled_frame_pointers = true |
| 77 } |
| 78 } else { |
| 79 # Explicitly ask for frame pointers, otherwise: |
| 80 # * Stacks may be missing for sanitizer and profiling builds. |
| 81 # * Debug tcmalloc can crash (crbug.com/636489). |
| 82 # * Stacks may be missing for arm64 crash dumps (crbug.com/391706). |
| 83 enabled_frame_pointers = |
| 84 using_sanitizer || enable_profiling || is_debug || current_cpu == "arm64" |
| 85 } |
| 86 |
68 declare_args() { | 87 declare_args() { |
69 # Whether or not the official builds should be built with full WPO. Enabled by | 88 # Whether or not the official builds should be built with full WPO. Enabled by |
70 # default for the PGO and the x64 builds. | 89 # default for the PGO and the x64 builds. |
71 if (chrome_pgo_phase > 0) { | 90 if (chrome_pgo_phase > 0) { |
72 full_wpo_on_official = true | 91 full_wpo_on_official = true |
73 } else { | 92 } else { |
74 full_wpo_on_official = false | 93 full_wpo_on_official = false |
75 } | 94 } |
76 } | 95 } |
77 | 96 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 146 } |
128 | 147 |
129 # Assert that the configuration isn't going to hit https://crbug.com/648948. | 148 # Assert that the configuration isn't going to hit https://crbug.com/648948. |
130 assert(ignore_elf32_limitations || !is_android || | 149 assert(ignore_elf32_limitations || !is_android || |
131 (android_64bit_target_cpu && !build_apk_secondary_abi) || | 150 (android_64bit_target_cpu && !build_apk_secondary_abi) || |
132 is_component_build || symbol_level < 2, | 151 is_component_build || symbol_level < 2, |
133 "Android 32-bit non-component builds cannot have symbol_level=2 " + | 152 "Android 32-bit non-component builds cannot have symbol_level=2 " + |
134 "due to 4GiB file size limit, see https://crbug.com/648948. " + | 153 "due to 4GiB file size limit, see https://crbug.com/648948. " + |
135 "If you really want to try this out, " + | 154 "If you really want to try this out, " + |
136 "set ignore_elf32_limitations=true.") | 155 "set ignore_elf32_limitations=true.") |
OLD | NEW |