| 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/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//build/toolchain/goma.gni") | 9 import("//build/toolchain/goma.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 # Whether or not the official builds should be built with full WPO. Enabled by | 58 # Whether or not the official builds should be built with full WPO. Enabled by |
| 59 # default for the PGO and the x64 builds. | 59 # default for the PGO and the x64 builds. |
| 60 if (chrome_pgo_phase > 0) { | 60 if (chrome_pgo_phase > 0) { |
| 61 full_wpo_on_official = true | 61 full_wpo_on_official = true |
| 62 } else { | 62 } else { |
| 63 full_wpo_on_official = false | 63 full_wpo_on_official = false |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 declare_args() { | 67 declare_args() { |
| 68 # Generate Syzygy optimized binaries. Syzygy optimize mode is a profile | |
| 69 # guided optimization that reorders code for better locality. | |
| 70 syzygy_optimize = is_win && target_cpu == "x86" && is_official_build && | |
| 71 !is_clang && !is_win_fastlink && !is_syzyasan | |
| 72 } | |
| 73 | |
| 74 declare_args() { | |
| 75 # Whether to use the gold linker from binutils instead of lld or bfd. | 68 # Whether to use the gold linker from binutils instead of lld or bfd. |
| 76 use_gold = !use_lld && !(is_chromecast && is_linux && | 69 use_gold = !use_lld && !(is_chromecast && is_linux && |
| 77 (current_cpu == "arm" || current_cpu == "mipsel")) && | 70 (current_cpu == "arm" || current_cpu == "mipsel")) && |
| 78 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || | 71 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || |
| 79 current_cpu == "arm" || current_cpu == "mipsel")) || | 72 current_cpu == "arm" || current_cpu == "mipsel")) || |
| 80 (is_android && (current_cpu == "x86" || current_cpu == "x64" || | 73 (is_android && (current_cpu == "x86" || current_cpu == "x64" || |
| 81 current_cpu == "arm" || current_cpu == "arm64"))) | 74 current_cpu == "arm" || current_cpu == "arm64"))) |
| 82 } | 75 } |
| 83 | 76 |
| 84 # If it wasn't manually set, set to an appropriate default. | 77 # If it wasn't manually set, set to an appropriate default. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 107 symbol_level = 0 | 100 symbol_level = 0 |
| 108 } | 101 } |
| 109 } | 102 } |
| 110 | 103 |
| 111 # Assert that the configuration isn't going to hit https://crbug.com/648948. | 104 # Assert that the configuration isn't going to hit https://crbug.com/648948. |
| 112 assert(ignore_elf32_limitations || !is_android || android_64bit_target_cpu || | 105 assert(ignore_elf32_limitations || !is_android || android_64bit_target_cpu || |
| 113 is_component_build || symbol_level < 2 || is_clang, | 106 is_component_build || symbol_level < 2 || is_clang, |
| 114 "Android 32-bit non-component, non-clang builds cannot have " + | 107 "Android 32-bit non-component, non-clang builds cannot have " + |
| 115 "symbol_level=2 due to 4GiB file size limit, see " + | 108 "symbol_level=2 due to 4GiB file size limit, see " + |
| 116 "https://crbug.com/648948") | 109 "https://crbug.com/648948") |
| OLD | NEW |