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

Side by Side Diff: build/toolchain/cros/BUILD.gn

Issue 2198423002: Clean up default toolchain logic for CrOS GN builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/BUILDCONFIG.gn ('k') | 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/compiler/compiler.gni") 5 import("//build/config/compiler/compiler.gni")
6 import("//build/config/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 import("//build/toolchain/gcc_toolchain.gni") 7 import("//build/toolchain/gcc_toolchain.gni")
8 import("//build/toolchain/cros_toolchain.gni") 8 import("//build/toolchain/cros_toolchain.gni")
9 9
10 # TODO(dpranke): Delete this after we get rid of the reference to
11 # build/toolchain/cros:clang_target in BUILDCONFIG.gn
12 clang_toolchain("clang_target") {
13 toolchain_cpu = target_cpu
14 toolchain_os = "linux"
15 }
16
17 template("cros_target_toolchain") { 10 template("cros_target_toolchain") {
18 if (defined(invoker.use_debug_fission)) { 11 if (defined(invoker.use_debug_fission)) {
19 use_debug_fission = invoker.use_debug_fission 12 use_debug_fission = invoker.use_debug_fission
20 } 13 }
21 if (defined(invoker.use_gold)) { 14 if (defined(invoker.use_gold)) {
22 use_gold = invoker.use_gold 15 use_gold = invoker.use_gold
23 } 16 }
24 if (defined(invoker.use_sysroot)) { 17 if (defined(invoker.use_sysroot)) {
25 use_sysroot = invoker.use_sysroot 18 use_sysroot = invoker.use_sysroot
26 } 19 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 is_clang = cros_v8_snapshot_is_clang 117 is_clang = cros_v8_snapshot_is_clang
125 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { 118 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") {
126 toolchain_cpu = "x86" 119 toolchain_cpu = "x86"
127 } else { 120 } else {
128 toolchain_cpu = "x64" 121 toolchain_cpu = "x64"
129 } 122 }
130 v8_toolchain_cpu = v8_target_cpu 123 v8_toolchain_cpu = v8_target_cpu
131 toolchain_os = "linux" 124 toolchain_os = "linux"
132 use_sysroot = false 125 use_sysroot = false
133 } 126 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698