OLD | NEW |
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/toolchain/gcc_toolchain.gni") | 5 import("//build/toolchain/gcc_toolchain.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 toolchain_prefix = "" | 8 toolchain_prefix = "" |
9 } | 9 } |
10 | 10 |
11 gcc_toolchain("target") { | 11 gcc_toolchain("target") { |
12 assert(toolchain_prefix != "", "Must provide toolchain_prefix") | 12 assert(toolchain_prefix != "", "Must provide toolchain_prefix") |
13 | 13 |
14 cc = "${toolchain_prefix}gcc" | 14 cc = "${toolchain_prefix}gcc" |
15 cxx = "${toolchain_prefix}g++" | 15 cxx = "${toolchain_prefix}g++" |
16 ar = "${toolchain_prefix}ar" | 16 ar = "${toolchain_prefix}ar" |
17 ld = cxx | 17 ld = cxx |
18 readelf = "${toolchain_prefix}readelf" | 18 readelf = "${toolchain_prefix}readelf" |
19 nm = "${toolchain_prefix}nm" | 19 nm = "${toolchain_prefix}nm" |
20 | 20 |
21 toolchain_cpu = "${target_cpu}" | 21 toolchain_cpu = "${target_cpu}" |
22 toolchain_os = "linux" | 22 toolchain_os = "linux" |
23 is_clang = is_clang | 23 is_clang = is_clang |
| 24 use_ccache = false |
| 25 use_goma = false |
| 26 |
24 } | 27 } |
OLD | NEW |