| 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/ccache.gni") | 6 import("//build/toolchain/ccache.gni") |
| 7 import("//build/toolchain/clang.gni") | 7 import("//build/toolchain/clang.gni") |
| 8 import("//build/toolchain/gcc_toolchain.gni") | 8 import("//build/toolchain/gcc_toolchain.gni") |
| 9 import("//build/toolchain/goma.gni") | 9 import("//build/toolchain/goma.gni") |
| 10 | 10 |
| 11 declare_args() { | 11 declare_args() { |
| 12 toolchain_prefix = "" | 12 toolchain_prefix = "" |
| 13 } | 13 } |
| 14 | 14 |
| 15 if (use_goma) { | 15 if (use_goma) { |
| 16 assert(!use_ccache, "Goma and ccache can't be used together.") | 16 assert(!use_ccache, "Goma and ccache can't be used together.") |
| 17 compiler_prefix = "$goma_dir/gomacc " | 17 compiler_prefix = "$goma_dir/gomacc " |
| 18 } else if (use_ccache) { | 18 } else if (use_ccache) { |
| 19 compiler_prefix = "ccache " | 19 compiler_prefix = "ccache " |
| 20 } else { | 20 } else { |
| 21 compiler_prefix = "" | 21 compiler_prefix = "" |
| 22 } | 22 } |
| 23 | 23 |
| 24 gcc_toolchain("arm") { | 24 gcc_toolchain("arm") { |
| 25 cc = "${compiler_prefix}arm-linux-gnueabi-gcc" | 25 cc = "${compiler_prefix}arm-linux-gnueabihf-gcc" |
| 26 cxx = "${compiler_prefix}arm-linux-gnueabi-g++" | 26 cxx = "${compiler_prefix}arm-linux-gnueabihf-g++" |
| 27 | 27 |
| 28 ar = "arm-linux-gnueabi-ar" | 28 ar = "arm-linux-gnueabihf-ar" |
| 29 ld = cxx | 29 ld = cxx |
| 30 readelf = "arm-linux-gnueabi-readelf" | 30 readelf = "arm-linux-gnueabihf-readelf" |
| 31 nm = "arm-linux-gnueabi-nm" | 31 nm = "arm-linux-gnueabihf-nm" |
| 32 | 32 |
| 33 toolchain_cpu = "arm" | 33 toolchain_cpu = "arm" |
| 34 toolchain_os = "linux" | 34 toolchain_os = "linux" |
| 35 is_clang = false | 35 is_clang = false |
| 36 } | 36 } |
| 37 | 37 |
| 38 gcc_toolchain("arm64") { | 38 gcc_toolchain("arm64") { |
| 39 cc = "${compiler_prefix}aarch64-linux-gnu-gcc" | 39 cc = "${compiler_prefix}aarch64-linux-gnu-gcc" |
| 40 cxx = "${compiler_prefix}aarch64-linux-gnu-g++" | 40 cxx = "${compiler_prefix}aarch64-linux-gnu-g++" |
| 41 | 41 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 cxx = "${toolchain_prefix}g++" | 114 cxx = "${toolchain_prefix}g++" |
| 115 ar = "${toolchain_prefix}ar" | 115 ar = "${toolchain_prefix}ar" |
| 116 ld = cxx | 116 ld = cxx |
| 117 readelf = "${toolchain_prefix}readelf" | 117 readelf = "${toolchain_prefix}readelf" |
| 118 nm = "${toolchain_prefix}nm" | 118 nm = "${toolchain_prefix}nm" |
| 119 | 119 |
| 120 toolchain_cpu = "${target_cpu}" | 120 toolchain_cpu = "${target_cpu}" |
| 121 toolchain_os = "linux" | 121 toolchain_os = "linux" |
| 122 is_clang = is_clang | 122 is_clang = is_clang |
| 123 } | 123 } |
| OLD | NEW |