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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 # Whether or not the official builds should be build with full WPO. | 33 # Whether or not the official builds should be build with full WPO. |
34 full_wpo_on_official = false | 34 full_wpo_on_official = false |
35 } | 35 } |
36 | 36 |
37 declare_args() { | 37 declare_args() { |
38 # Whether to use the gold linker from binutils instead of lld or bfd. | 38 # Whether to use the gold linker from binutils instead of lld or bfd. |
39 use_gold = !use_lld && !(is_chromecast && is_linux && | 39 use_gold = !use_lld && !(is_chromecast && is_linux && |
40 (current_cpu == "arm" || current_cpu == "mipsel")) && | 40 (current_cpu == "arm" || current_cpu == "mipsel")) && |
41 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || | 41 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || |
42 current_cpu == "arm")) || | 42 current_cpu == "arm" || current_cpu == "mipsel")) || |
43 (is_android && (current_cpu == "x86" || current_cpu == "x64" || | 43 (is_android && (current_cpu == "x86" || current_cpu == "x64" || |
44 current_cpu == "arm"))) | 44 current_cpu == "arm"))) |
45 } | 45 } |
46 | 46 |
47 # If it wasn't manually set, set to an appropriate default. | 47 # If it wasn't manually set, set to an appropriate default. |
48 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level") | 48 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level") |
49 if (symbol_level == -1) { | 49 if (symbol_level == -1) { |
50 if (is_android && use_order_profiling) { | 50 if (is_android && use_order_profiling) { |
51 # With instrumentation enabled, debug info puts libchrome.so over 4gb, which | 51 # With instrumentation enabled, debug info puts libchrome.so over 4gb, which |
52 # causes the linker to produce an invalid ELF. http://crbug.com/574476 | 52 # causes the linker to produce an invalid ELF. http://crbug.com/574476 |
(...skipping 12 matching lines...) Expand all Loading... |
65 symbol_level = 1 | 65 symbol_level = 1 |
66 } else { | 66 } else { |
67 symbol_level = 0 | 67 symbol_level = 0 |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 # PGO requires full WPO. | 71 # PGO requires full WPO. |
72 if (chrome_pgo_phase > 0) { | 72 if (chrome_pgo_phase > 0) { |
73 full_wpo_on_official = true | 73 full_wpo_on_official = true |
74 } | 74 } |
OLD | NEW |