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
3 # found in the LICENSE file.
5 import("//build/config/sysroot.gni")
6 import("//build/toolchain/clang.gni")
7 import("//build/toolchain/gcc_toolchain.gni")
8 import("//build/toolchain/goma.gni")
10 gcc_toolchain("arm") {
11 cc = "arm-linux-gnueabi-gcc"
12 cxx = "arm-linux-gnueabi-g++"
13 ar = "arm-linux-gnueabi-ar"
16 toolchain_cpu_arch = "arm"
17 toolchain_os = "linux"
20 gcc_toolchain("x86") {
22 if (use_clang_type_profiler) {
23 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_ia32/bin",
26 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
30 cxx = "$prefix/clang++"
39 toolchain_cpu_arch = "x86"
40 toolchain_os = "linux"
43 gcc_toolchain("x64") {
45 if (use_clang_type_profiler) {
46 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_x64/bin",
49 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
53 cxx = "$prefix/clang++"
62 toolchain_cpu_arch = "x64"
63 toolchain_os = "linux"
66 gcc_toolchain("mipsel") {
67 cc = "mipsel-linux-gnu-gcc"
68 cxx = "mipsel-linux-gnu-g++"
69 ar = "mipsel-linux-gnu-ar"
72 toolchain_cpu_arch = "mipsel"
73 toolchain_os = "linux"