OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
6 import("//build/toolchain/gcc_toolchain.gni") | 6 import("//build/toolchain/gcc_toolchain.gni") |
7 | 7 |
8 clang_toolchain("clang_arm") { | 8 clang_toolchain("clang_arm") { |
9 toolprefix = "arm-linux-gnueabihf-" | 9 toolprefix = "arm-linux-gnueabihf-" |
10 toolchain_args = { | 10 toolchain_args = { |
11 current_cpu = "arm" | 11 current_cpu = "arm" |
12 current_os = "linux" | 12 current_os = "linux" |
13 } | 13 } |
14 } | 14 } |
15 | 15 |
16 clang_toolchain("clang_arm64") { | 16 clang_toolchain("clang_arm64") { |
17 toolprefix = "aarch64-linux-gnu-" | 17 toolprefix = "aarch64-linux-gnu-" |
18 toolchain_args = { | 18 toolchain_args = { |
19 current_cpu = "arm64" | 19 current_cpu = "arm64" |
20 current_os = "linux" | 20 current_os = "linux" |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
| 24 gcc_toolchain("arm64") { |
| 25 toolprefix = "aarch64-linux-gnu-" |
| 26 |
| 27 cc = "${toolprefix}gcc" |
| 28 cxx = "${toolprefix}g++" |
| 29 |
| 30 ar = "${toolprefix}ar" |
| 31 ld = cxx |
| 32 readelf = "${toolprefix}readelf" |
| 33 nm = "${toolprefix}nm" |
| 34 |
| 35 toolchain_args = { |
| 36 current_cpu = "arm64" |
| 37 current_os = "linux" |
| 38 is_clang = false |
| 39 } |
| 40 } |
| 41 |
24 gcc_toolchain("arm") { | 42 gcc_toolchain("arm") { |
25 toolprefix = "arm-linux-gnueabihf-" | 43 toolprefix = "arm-linux-gnueabihf-" |
26 | 44 |
27 cc = "${toolprefix}gcc" | 45 cc = "${toolprefix}gcc" |
28 cxx = "${toolprefix}g++" | 46 cxx = "${toolprefix}g++" |
29 | 47 |
30 ar = "${toolprefix}ar" | 48 ar = "${toolprefix}ar" |
31 ld = cxx | 49 ld = cxx |
32 readelf = "${toolprefix}readelf" | 50 readelf = "${toolprefix}readelf" |
33 nm = "${toolprefix}nm" | 51 nm = "${toolprefix}nm" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 nm = "mipsel-linux-gnu-nm" | 151 nm = "mipsel-linux-gnu-nm" |
134 | 152 |
135 toolchain_args = { | 153 toolchain_args = { |
136 cc_wrapper = "" | 154 cc_wrapper = "" |
137 current_cpu = "mipsel" | 155 current_cpu = "mipsel" |
138 current_os = "linux" | 156 current_os = "linux" |
139 is_clang = false | 157 is_clang = false |
140 use_goma = false | 158 use_goma = false |
141 } | 159 } |
142 } | 160 } |
OLD | NEW |