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

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

Issue 2083063003: Move the cros_* GN args to a .gni file and add a bootstrap cros toolchain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: import needed declare_args(), fix toolchain_os Created 4 years, 6 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 | « build/config/compiler/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | 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 19 matching lines...) Expand all
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 built with full WPO. Enabled by 33 # Whether or not the official builds should be built with full WPO. Enabled by
34 # default for the PGO and the x64 builds. 34 # default for the PGO and the x64 builds.
35 if (chrome_pgo_phase > 0 || target_cpu == "x64") { 35 if (chrome_pgo_phase > 0 || target_cpu == "x64") {
36 full_wpo_on_official = true 36 full_wpo_on_official = true
37 } else { 37 } else {
38 full_wpo_on_official = false 38 full_wpo_on_official = false
39 } 39 }
40
41 # use_debug_fission: whether to use split DWARF debug info
42 # files. This can reduce link time significantly, but is incompatible
43 # with some utilities such as icecc and ccache. Requires gold and
44 # gcc >= 4.8 or clang.
45 # http://gcc.gnu.org/wiki/DebugFission
46 #
47 # This is a placeholder value indicating that the code below should set
48 # the default. This is necessary to delay the evaluation of the default
49 # value expression until after its input values such as use_gold have
50 # been set, e.g. by a toolchain_args() block.
51 use_debug_fission = "default"
40 } 52 }
41 53
42 declare_args() { 54 declare_args() {
43 # Whether to use the gold linker from binutils instead of lld or bfd. 55 # Whether to use the gold linker from binutils instead of lld or bfd.
44 use_gold = !use_lld && !(is_chromecast && is_linux && 56 use_gold = !use_lld && !(is_chromecast && is_linux &&
45 (current_cpu == "arm" || current_cpu == "mipsel")) && 57 (current_cpu == "arm" || current_cpu == "mipsel")) &&
46 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || 58 ((is_linux && (current_cpu == "x64" || current_cpu == "x86" ||
47 current_cpu == "arm" || current_cpu == "mipsel")) || 59 current_cpu == "arm" || current_cpu == "mipsel")) ||
48 (is_android && (current_cpu == "x86" || current_cpu == "x64" || 60 (is_android && (current_cpu == "x86" || current_cpu == "x64" ||
49 current_cpu == "arm"))) 61 current_cpu == "arm")))
(...skipping 15 matching lines...) Expand all
65 # Mac and Windows have them separate, so in Release Linux, default them off, 77 # Mac and Windows have them separate, so in Release Linux, default them off,
66 # but keep them on for Official builds and Chromecast builds. 78 # but keep them on for Official builds and Chromecast builds.
67 symbol_level = 2 79 symbol_level = 2
68 } else if (using_sanitizer) { 80 } else if (using_sanitizer) {
69 # Sanitizers require symbols for filename suppressions to work. 81 # Sanitizers require symbols for filename suppressions to work.
70 symbol_level = 1 82 symbol_level = 1
71 } else { 83 } else {
72 symbol_level = 0 84 symbol_level = 0
73 } 85 }
74 } 86 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/toolchain/cros/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698