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")
11 goma_prefix = "$goma_dir/gomacc "
16 gcc_toolchain("arm") {
17 cc = "${goma_prefix}arm-linux-gnueabi-gcc"
18 cxx = "${goma_prefix}arm-linux-gnueabi-g++"
20 ar = "arm-linux-gnueabi-ar"
23 toolchain_cpu_arch = "arm"
24 toolchain_os = "linux"
28 gcc_toolchain("clang_x86") {
29 if (use_clang_type_profiler) {
30 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_ia32/bin",
33 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
36 cc = "${goma_prefix}$prefix/clang"
37 cxx = "${goma_prefix}$prefix/clang++"
42 toolchain_cpu_arch = "x86"
43 toolchain_os = "linux"
47 gcc_toolchain("x86") {
48 cc = "${goma_prefix}gcc"
49 cxx = "$goma_prefix}g++"
54 toolchain_cpu_arch = "x86"
55 toolchain_os = "linux"
59 gcc_toolchain("clang_x64") {
60 if (use_clang_type_profiler) {
61 prefix = rebase_path("//third_party/llvm-allocated-type/Linux_x64/bin",
64 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
67 cc = "${goma_prefix}$prefix/clang"
68 cxx = "${goma_prefix}$prefix/clang++"
73 toolchain_cpu_arch = "x64"
74 toolchain_os = "linux"
78 gcc_toolchain("x64") {
79 cc = "${goma_prefix}gcc"
80 cxx = "${goma_prefix}g++"
85 toolchain_cpu_arch = "x64"
86 toolchain_os = "linux"
90 gcc_toolchain("mipsel") {
91 cc = "mipsel-linux-gnu-gcc"
92 cxx = "mipsel-linux-gnu-g++"
93 ar = "mipsel-linux-gnu-ar"
96 toolchain_cpu_arch = "mipsel"
97 toolchain_os = "linux"