| 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 clang_toolchain("clang_arm") { | 8 clang_toolchain("clang_arm") { |
| 9 toolchain_cpu = "arm" | |
| 10 toolchain_os = "linux" | |
| 11 toolprefix = "arm-linux-gnueabihf-" | 9 toolprefix = "arm-linux-gnueabihf-" |
| 10 toolchain_args = { |
| 11 current_cpu = "arm" |
| 12 current_os = "linux" |
| 13 } |
| 12 } | 14 } |
| 13 | 15 |
| 14 clang_toolchain("clang_arm64") { | 16 clang_toolchain("clang_arm64") { |
| 15 toolchain_cpu = "arm64" | |
| 16 toolchain_os = "linux" | |
| 17 toolprefix = "aarch64-linux-gnu-" | 17 toolprefix = "aarch64-linux-gnu-" |
| 18 toolchain_args = { |
| 19 current_cpu = "arm64" |
| 20 current_os = "linux" |
| 21 } |
| 18 } | 22 } |
| 19 | 23 |
| 20 gcc_toolchain("arm") { | 24 gcc_toolchain("arm") { |
| 21 toolprefix = "arm-linux-gnueabihf-" | 25 toolprefix = "arm-linux-gnueabihf-" |
| 22 | 26 |
| 23 cc = "${toolprefix}gcc" | 27 cc = "${toolprefix}gcc" |
| 24 cxx = "${toolprefix}g++" | 28 cxx = "${toolprefix}g++" |
| 25 | 29 |
| 26 ar = "${toolprefix}ar" | 30 ar = "${toolprefix}ar" |
| 27 ld = cxx | 31 ld = cxx |
| 28 readelf = "${toolprefix}readelf" | 32 readelf = "${toolprefix}readelf" |
| 29 nm = "${toolprefix}nm" | 33 nm = "${toolprefix}nm" |
| 30 | 34 |
| 31 toolchain_cpu = "arm" | 35 toolchain_args = { |
| 32 toolchain_os = "linux" | 36 current_cpu = "arm" |
| 33 is_clang = false | 37 current_os = "linux" |
| 38 is_clang = false |
| 39 } |
| 34 } | 40 } |
| 35 | 41 |
| 36 clang_toolchain("clang_x86") { | 42 clang_toolchain("clang_x86") { |
| 37 toolchain_cpu = "x86" | 43 toolchain_args = { |
| 38 toolchain_os = "linux" | 44 current_cpu = "x86" |
| 45 current_os = "linux" |
| 46 } |
| 39 } | 47 } |
| 40 | 48 |
| 41 clang_toolchain("clang_x86_v8_arm") { | 49 clang_toolchain("clang_x86_v8_arm") { |
| 42 toolchain_cpu = "x86" | 50 toolchain_args = { |
| 43 v8_toolchain_cpu = "arm" | 51 current_cpu = "x86" |
| 44 toolchain_os = "linux" | 52 v8_current_cpu = "arm" |
| 53 current_os = "linux" |
| 54 } |
| 45 } | 55 } |
| 46 | 56 |
| 47 clang_toolchain("clang_x86_v8_mipsel") { | 57 clang_toolchain("clang_x86_v8_mipsel") { |
| 48 toolchain_cpu = "x86" | 58 toolchain_args = { |
| 49 v8_toolchain_cpu = "mipsel" | 59 current_cpu = "x86" |
| 50 toolchain_os = "linux" | 60 v8_current_cpu = "mipsel" |
| 61 current_os = "linux" |
| 62 } |
| 51 } | 63 } |
| 52 | 64 |
| 53 gcc_toolchain("x86") { | 65 gcc_toolchain("x86") { |
| 54 cc = "gcc" | 66 cc = "gcc" |
| 55 cxx = "g++" | 67 cxx = "g++" |
| 56 | 68 |
| 57 readelf = "readelf" | 69 readelf = "readelf" |
| 58 nm = "nm" | 70 nm = "nm" |
| 59 ar = "ar" | 71 ar = "ar" |
| 60 ld = cxx | 72 ld = cxx |
| 61 | 73 |
| 62 toolchain_cpu = "x86" | 74 toolchain_args = { |
| 63 toolchain_os = "linux" | 75 current_cpu = "x86" |
| 64 is_clang = false | 76 current_os = "linux" |
| 77 is_clang = false |
| 78 } |
| 65 } | 79 } |
| 66 | 80 |
| 67 clang_toolchain("clang_x64") { | 81 clang_toolchain("clang_x64") { |
| 68 toolchain_cpu = "x64" | 82 toolchain_args = { |
| 69 toolchain_os = "linux" | 83 current_cpu = "x64" |
| 84 current_os = "linux" |
| 85 } |
| 70 } | 86 } |
| 71 | 87 |
| 72 clang_toolchain("clang_x64_v8_arm64") { | 88 clang_toolchain("clang_x64_v8_arm64") { |
| 73 toolchain_cpu = "x64" | 89 toolchain_args = { |
| 74 v8_toolchain_cpu = "arm64" | 90 current_cpu = "x64" |
| 75 toolchain_os = "linux" | 91 v8_current_cpu = "arm64" |
| 92 current_os = "linux" |
| 93 } |
| 76 } | 94 } |
| 77 | 95 |
| 78 clang_toolchain("clang_x64_v8_mips64el") { | 96 clang_toolchain("clang_x64_v8_mips64el") { |
| 79 toolchain_cpu = "x64" | 97 toolchain_args = { |
| 80 v8_toolchain_cpu = "mips64el" | 98 current_cpu = "x64" |
| 81 toolchain_os = "linux" | 99 v8_current_cpu = "mips64el" |
| 100 current_os = "linux" |
| 101 } |
| 82 } | 102 } |
| 83 | 103 |
| 84 gcc_toolchain("x64") { | 104 gcc_toolchain("x64") { |
| 85 cc = "gcc" | 105 cc = "gcc" |
| 86 cxx = "g++" | 106 cxx = "g++" |
| 87 | 107 |
| 88 readelf = "readelf" | 108 readelf = "readelf" |
| 89 nm = "nm" | 109 nm = "nm" |
| 90 ar = "ar" | 110 ar = "ar" |
| 91 ld = cxx | 111 ld = cxx |
| 92 | 112 |
| 93 toolchain_cpu = "x64" | 113 toolchain_args = { |
| 94 toolchain_os = "linux" | 114 current_cpu = "x64" |
| 95 is_clang = false | 115 current_os = "linux" |
| 116 is_clang = false |
| 117 } |
| 96 } | 118 } |
| 97 | 119 |
| 98 clang_toolchain("clang_mipsel") { | 120 clang_toolchain("clang_mipsel") { |
| 99 toolchain_cpu = "mipsel" | 121 toolchain_args = { |
| 100 toolchain_os = "linux" | 122 current_cpu = "mipsel" |
| 123 current_os = "linux" |
| 124 } |
| 101 } | 125 } |
| 102 | 126 |
| 103 gcc_toolchain("mipsel") { | 127 gcc_toolchain("mipsel") { |
| 104 cc = "mipsel-linux-gnu-gcc" | 128 cc = "mipsel-linux-gnu-gcc" |
| 105 cxx = "mipsel-linux-gnu-g++" | 129 cxx = "mipsel-linux-gnu-g++" |
| 106 ar = "mipsel-linux-gnu-ar" | 130 ar = "mipsel-linux-gnu-ar" |
| 107 ld = cxx | 131 ld = cxx |
| 108 readelf = "mipsel-linux-gnu-readelf" | 132 readelf = "mipsel-linux-gnu-readelf" |
| 109 nm = "mipsel-linux-gnu-nm" | 133 nm = "mipsel-linux-gnu-nm" |
| 110 | 134 |
| 111 toolchain_cpu = "mipsel" | 135 toolchain_args = { |
| 112 toolchain_os = "linux" | 136 cc_wrapper = "" |
| 113 is_clang = false | 137 current_cpu = "mipsel" |
| 114 cc_wrapper = "" | 138 current_os = "linux" |
| 115 use_goma = false | 139 is_clang = false |
| 140 use_goma = false |
| 141 } |
| 116 } | 142 } |
| OLD | NEW |