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/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 # 1 : Used during the PGI (instrumentation) phase. | 44 # 1 : Used during the PGI (instrumentation) phase. |
45 # 2 : Used during the PGO (optimization) phase. | 45 # 2 : Used during the PGO (optimization) phase. |
46 # | 46 # |
47 # TODO(sebmarchand): Add support for the PGU (update) phase. | 47 # TODO(sebmarchand): Add support for the PGU (update) phase. |
48 chrome_pgo_phase = 0 | 48 chrome_pgo_phase = 0 |
49 } | 49 } |
50 | 50 |
51 declare_args() { | 51 declare_args() { |
52 # Whether or not the official builds should be built with full WPO. Enabled by | 52 # Whether or not the official builds should be built with full WPO. Enabled by |
53 # default for the PGO and the x64 builds. | 53 # default for the PGO and the x64 builds. |
54 if (chrome_pgo_phase > 0 || target_cpu == "x64") { | 54 if (chrome_pgo_phase > 0) { |
55 full_wpo_on_official = true | 55 full_wpo_on_official = true |
56 } else { | 56 } else { |
57 full_wpo_on_official = false | 57 full_wpo_on_official = false |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 declare_args() { | 61 declare_args() { |
62 # Generate Syzygy optimized binaries. Syzygy optimize mode is a profile | 62 # Generate Syzygy optimized binaries. Syzygy optimize mode is a profile |
63 # guided optimization that reorders code for better locality. | 63 # guided optimization that reorders code for better locality. |
64 syzygy_optimize = is_win && target_cpu == "x86" && is_official_build && | 64 syzygy_optimize = is_win && target_cpu == "x86" && is_official_build && |
(...skipping 26 matching lines...) Expand all Loading... |
91 # Mac and Windows have them separate, so in Release Linux, default them off, | 91 # Mac and Windows have them separate, so in Release Linux, default them off, |
92 # but keep them on for Official builds and Chromecast builds. | 92 # but keep them on for Official builds and Chromecast builds. |
93 symbol_level = 2 | 93 symbol_level = 2 |
94 } else if (using_sanitizer) { | 94 } else if (using_sanitizer) { |
95 # Sanitizers require symbols for filename suppressions to work. | 95 # Sanitizers require symbols for filename suppressions to work. |
96 symbol_level = 1 | 96 symbol_level = 1 |
97 } else { | 97 } else { |
98 symbol_level = 0 | 98 symbol_level = 0 |
99 } | 99 } |
100 } | 100 } |
OLD | NEW |