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. 4 5 import("//build/config/sysroot.gni") 6 import("//build/toolchain/gcc_toolchain.gni") 7 8 clang_toolchain("clang_arm") { 9 toolchain_cpu = "arm" 10 toolchain_os = "linux" 11 toolprefix = "arm-linux-gnueabihf-" 12 } 13 14 gcc_toolchain("arm") { 15 toolprefix = "arm-linux-gnueabihf-" 16 17 cc = "${toolprefix}gcc" 18 cxx = "${toolprefix}g++" 19 20 ar = "${toolprefix}ar" 21 ld = cxx 22 readelf = "${toolprefix}readelf" 23 nm = "${toolprefix}nm" 24 25 toolchain_cpu = "arm" 26 toolchain_os = "linux" 27 is_clang = false 28 } 29 30 clang_toolchain("clang_x86") { 31 toolchain_cpu = "x86" 32 toolchain_os = "linux" 33 } 34 35 gcc_toolchain("x86") { 36 cc = "gcc" 37 cxx = "g++" 38 39 readelf = "readelf" 40 nm = "nm" 41 ar = "ar" 42 ld = cxx 43 44 toolchain_cpu = "x86" 45 toolchain_os = "linux" 46 is_clang = false 47 } 48 49 clang_toolchain("clang_x64") { 50 toolchain_cpu = "x64" 51 toolchain_os = "linux" 52 } 53 54 gcc_toolchain("x64") { 55 cc = "gcc" 56 cxx = "g++" 57 58 readelf = "readelf" 59 nm = "nm" 60 ar = "ar" 61 ld = cxx 62 63 toolchain_cpu = "x64" 64 toolchain_os = "linux" 65 is_clang = false 66 } 67 68 clang_toolchain("clang_mipsel") { 69 toolchain_cpu = "mipsel" 70 toolchain_os = "linux" 71 } 72 73 gcc_toolchain("mipsel") { 74 cc = "mipsel-linux-gnu-gcc" 75 cxx = "mipsel-linux-gnu-g++" 76 ar = "mipsel-linux-gnu-ar" 77 ld = cxx 78 readelf = "mipsel-linux-gnu-readelf" 79 nm = "mipsel-linux-gnu-nm" 80 81 toolchain_cpu = "mipsel" 82 toolchain_os = "linux" 83 is_clang = false 84 cc_wrapper = "" 85 use_goma = false 86 } 87