OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |