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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 && |
65 !is_clang && !is_win_fastlink | 65 !is_clang && !is_win_fastlink && !is_syzyasan |
66 } | 66 } |
67 | 67 |
68 declare_args() { | 68 declare_args() { |
69 # Whether to use the gold linker from binutils instead of lld or bfd. | 69 # Whether to use the gold linker from binutils instead of lld or bfd. |
70 use_gold = !use_lld && !(is_chromecast && is_linux && | 70 use_gold = !use_lld && !(is_chromecast && is_linux && |
71 (current_cpu == "arm" || current_cpu == "mipsel")) && | 71 (current_cpu == "arm" || current_cpu == "mipsel")) && |
72 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || | 72 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || |
73 current_cpu == "arm" || current_cpu == "mipsel")) || | 73 current_cpu == "arm" || current_cpu == "mipsel")) || |
74 (is_android && (current_cpu == "x86" || current_cpu == "x64" || | 74 (is_android && (current_cpu == "x86" || current_cpu == "x64" || |
75 current_cpu == "arm"))) | 75 current_cpu == "arm"))) |
(...skipping 15 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 |