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