| 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/gcc_toolchain.gni") | 6 import("//build/toolchain/gcc_toolchain.gni") |
| 7 | 7 |
| 8 gcc_toolchain("clang_arm") { | 8 clang_toolchain("clang_arm") { |
| 9 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", | |
| 10 root_build_dir) | |
| 11 cc = "$prefix/clang" | |
| 12 cxx = "$prefix/clang++" | |
| 13 | |
| 14 toolprefix = "arm-linux-gnueabihf-" | |
| 15 readelf = "${toolprefix}readelf" | |
| 16 ar = "${toolprefix}ar" | |
| 17 ld = cxx | |
| 18 readelf = "${toolprefix}readelf" | |
| 19 nm = "${toolprefix}nm" | |
| 20 | |
| 21 toolchain_cpu = "arm" | 9 toolchain_cpu = "arm" |
| 22 toolchain_os = "linux" | 10 toolchain_os = "linux" |
| 23 is_clang = true | 11 toolprefix = "arm-linux-gnueabihf-" |
| 24 } | 12 } |
| 25 | 13 |
| 26 gcc_toolchain("arm") { | 14 gcc_toolchain("arm") { |
| 27 toolprefix = "arm-linux-gnueabihf-" | 15 toolprefix = "arm-linux-gnueabihf-" |
| 28 | 16 |
| 29 cc = "${toolprefix}gcc" | 17 cc = "${toolprefix}gcc" |
| 30 cxx = "${toolprefix}g++" | 18 cxx = "${toolprefix}g++" |
| 31 | 19 |
| 32 ar = "${toolprefix}ar" | 20 ar = "${toolprefix}ar" |
| 33 ld = cxx | 21 ld = cxx |
| 34 readelf = "${toolprefix}readelf" | 22 readelf = "${toolprefix}readelf" |
| 35 nm = "${toolprefix}nm" | 23 nm = "${toolprefix}nm" |
| 36 | 24 |
| 37 toolchain_cpu = "arm" | 25 toolchain_cpu = "arm" |
| 38 toolchain_os = "linux" | 26 toolchain_os = "linux" |
| 39 is_clang = false | 27 is_clang = false |
| 40 } | 28 } |
| 41 | 29 |
| 42 gcc_toolchain("clang_x86") { | 30 clang_toolchain("clang_x86") { |
| 43 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", | |
| 44 root_build_dir) | |
| 45 cc = "$prefix/clang" | |
| 46 cxx = "$prefix/clang++" | |
| 47 readelf = "readelf" | |
| 48 nm = "nm" | |
| 49 ar = "ar" | |
| 50 ld = cxx | |
| 51 | |
| 52 toolchain_cpu = "x86" | 31 toolchain_cpu = "x86" |
| 53 toolchain_os = "linux" | 32 toolchain_os = "linux" |
| 54 is_clang = true | |
| 55 } | 33 } |
| 56 | 34 |
| 57 gcc_toolchain("x86") { | 35 gcc_toolchain("x86") { |
| 58 cc = "gcc" | 36 cc = "gcc" |
| 59 cxx = "g++" | 37 cxx = "g++" |
| 60 | 38 |
| 61 readelf = "readelf" | 39 readelf = "readelf" |
| 62 nm = "nm" | 40 nm = "nm" |
| 63 ar = "ar" | 41 ar = "ar" |
| 64 ld = cxx | 42 ld = cxx |
| 65 | 43 |
| 66 toolchain_cpu = "x86" | 44 toolchain_cpu = "x86" |
| 67 toolchain_os = "linux" | 45 toolchain_os = "linux" |
| 68 is_clang = false | 46 is_clang = false |
| 69 } | 47 } |
| 70 | 48 |
| 71 gcc_toolchain("clang_x64") { | 49 clang_toolchain("clang_x64") { |
| 72 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", | |
| 73 root_build_dir) | |
| 74 cc = "$prefix/clang" | |
| 75 cxx = "$prefix/clang++" | |
| 76 | |
| 77 readelf = "readelf" | |
| 78 nm = "nm" | |
| 79 ar = "ar" | |
| 80 ld = cxx | |
| 81 | |
| 82 toolchain_cpu = "x64" | 50 toolchain_cpu = "x64" |
| 83 toolchain_os = "linux" | 51 toolchain_os = "linux" |
| 84 is_clang = true | |
| 85 } | 52 } |
| 86 | 53 |
| 87 gcc_toolchain("x64") { | 54 gcc_toolchain("x64") { |
| 88 cc = "gcc" | 55 cc = "gcc" |
| 89 cxx = "g++" | 56 cxx = "g++" |
| 90 | 57 |
| 91 readelf = "readelf" | 58 readelf = "readelf" |
| 92 nm = "nm" | 59 nm = "nm" |
| 93 ar = "ar" | 60 ar = "ar" |
| 94 ld = cxx | 61 ld = cxx |
| (...skipping 10 matching lines...) Expand all Loading... |
| 105 ld = cxx | 72 ld = cxx |
| 106 readelf = "mipsel-linux-gnu-readelf" | 73 readelf = "mipsel-linux-gnu-readelf" |
| 107 nm = "mipsel-linux-gnu-nm" | 74 nm = "mipsel-linux-gnu-nm" |
| 108 | 75 |
| 109 toolchain_cpu = "mipsel" | 76 toolchain_cpu = "mipsel" |
| 110 toolchain_os = "linux" | 77 toolchain_os = "linux" |
| 111 is_clang = false | 78 is_clang = false |
| 112 use_ccache = false | 79 use_ccache = false |
| 113 use_goma = false | 80 use_goma = false |
| 114 } | 81 } |
| OLD | NEW |