Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: build/config/compiler/compiler.gni

Issue 1994623004: [Chromecast] Update the default value of use_gold for Cast builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Account for Cast on Android arm builds Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 # 29 #
30 # TODO(sebmarchand): Add support for the PGU (update) phase. 30 # TODO(sebmarchand): Add support for the PGU (update) phase.
31 chrome_pgo_phase = 0 31 chrome_pgo_phase = 0
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 && 39 use_gold = !use_lld && !(is_chromecast && is_linux &&
40 (current_cpu == "arm" || current_cpu == "mipsel")) &&
40 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || 41 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" ||
41 current_cpu == "arm")) || 42 current_cpu == "arm")) ||
42 (is_android && (current_cpu == "x86" || current_cpu == "x64" || 43 (is_android && (current_cpu == "x86" || current_cpu == "x64" ||
43 current_cpu == "arm"))) 44 current_cpu == "arm")))
44 } 45 }
45 46
46 # If it wasn't manually set, set to an appropriate default. 47 # If it wasn't manually set, set to an appropriate default.
47 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level") 48 assert(symbol_level >= -1 && symbol_level <= 2, "Invalid symbol_level")
48 if (symbol_level == -1) { 49 if (symbol_level == -1) {
49 if (is_android && use_order_profiling) { 50 if (is_android && use_order_profiling) {
(...skipping 14 matching lines...) Expand all
64 symbol_level = 1 65 symbol_level = 1
65 } else { 66 } else {
66 symbol_level = 0 67 symbol_level = 0
67 } 68 }
68 } 69 }
69 70
70 # PGO requires full WPO. 71 # PGO requires full WPO.
71 if (chrome_pgo_phase > 0) { 72 if (chrome_pgo_phase > 0) {
72 full_wpo_on_official = true 73 full_wpo_on_official = true
73 } 74 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698