Chromium Code Reviews| 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 30 matching lines...) Expand all Loading... | |
| 41 is_win_fastlink = false | 41 is_win_fastlink = false |
| 42 | 42 |
| 43 # Specify the current PGO phase, only used for the Windows MSVS build. Here's | 43 # Specify the current PGO phase, only used for the Windows MSVS build. Here's |
| 44 # the different values that can be used: | 44 # the different values that can be used: |
| 45 # 0 : Means that PGO is turned off. | 45 # 0 : Means that PGO is turned off. |
| 46 # 1 : Used during the PGI (instrumentation) phase. | 46 # 1 : Used during the PGI (instrumentation) phase. |
| 47 # 2 : Used during the PGO (optimization) phase. | 47 # 2 : Used during the PGO (optimization) phase. |
| 48 # | 48 # |
| 49 # TODO(sebmarchand): Add support for the PGU (update) phase. | 49 # TODO(sebmarchand): Add support for the PGU (update) phase. |
| 50 chrome_pgo_phase = 0 | 50 chrome_pgo_phase = 0 |
| 51 | |
| 52 # Whether or not we should turn on incremental LTCG. Only affects the VS | |
| 53 # Windows build. | |
| 54 use_incremental_ltcg = false | |
|
brucedawson
2016/11/03 18:13:19
One could argue that this should be named "use_inc
Sébastien Marchand
2016/11/03 21:18:02
tough call, I'll go with the wpo variant as these
| |
| 51 } | 55 } |
| 52 | 56 |
| 53 declare_args() { | 57 declare_args() { |
| 54 # 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 |
| 55 # default for the PGO and the x64 builds. | 59 # default for the PGO and the x64 builds. |
| 56 if (chrome_pgo_phase > 0) { | 60 if (chrome_pgo_phase > 0) { |
| 57 full_wpo_on_official = true | 61 full_wpo_on_official = true |
| 58 } else { | 62 } else { |
| 59 full_wpo_on_official = false | 63 full_wpo_on_official = false |
| 60 } | 64 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 symbol_level = 0 | 100 symbol_level = 0 |
| 97 } | 101 } |
| 98 } | 102 } |
| 99 | 103 |
| 100 # 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. |
| 101 assert(ignore_elf32_limitations || !is_android || android_64bit_target_cpu || | 105 assert(ignore_elf32_limitations || !is_android || android_64bit_target_cpu || |
| 102 is_component_build || symbol_level < 2 || is_clang, | 106 is_component_build || symbol_level < 2 || is_clang, |
| 103 "Android 32-bit non-component, non-clang builds cannot have " + | 107 "Android 32-bit non-component, non-clang builds cannot have " + |
| 104 "symbol_level=2 due to 4GiB file size limit, see " + | 108 "symbol_level=2 due to 4GiB file size limit, see " + |
| 105 "https://crbug.com/648948") | 109 "https://crbug.com/648948") |
| OLD | NEW |