Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Side by Side Diff: build/toolchain/linux/BUILD.gn

Issue 2875553003: Add support for building v8 on mips and mips64 using GN. (Closed)
Patch Set: added cflags and removed nacl mips definition Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/sysroot.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 toolprefix = "arm-linux-gnueabihf-" 9 toolprefix = "arm-linux-gnueabihf-"
10 toolchain_args = { 10 toolchain_args = {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 clang_toolchain("clang_x86_v8_mipsel") { 78 clang_toolchain("clang_x86_v8_mipsel") {
79 toolchain_args = { 79 toolchain_args = {
80 current_cpu = "x86" 80 current_cpu = "x86"
81 v8_current_cpu = "mipsel" 81 v8_current_cpu = "mipsel"
82 current_os = "linux" 82 current_os = "linux"
83 } 83 }
84 } 84 }
85 85
86 clang_toolchain("clang_x86_v8_mips") {
87 toolchain_args = {
88 current_cpu = "x86"
89 v8_current_cpu = "mips"
90 current_os = "linux"
91 }
92 }
93
86 gcc_toolchain("x86") { 94 gcc_toolchain("x86") {
87 cc = "gcc" 95 cc = "gcc"
88 cxx = "g++" 96 cxx = "g++"
89 97
90 readelf = "readelf" 98 readelf = "readelf"
91 nm = "nm" 99 nm = "nm"
92 ar = "ar" 100 ar = "ar"
93 ld = cxx 101 ld = cxx
94 102
95 # Output linker map files for binary size analysis. 103 # Output linker map files for binary size analysis.
(...skipping 25 matching lines...) Expand all
121 } 129 }
122 130
123 clang_toolchain("clang_x64_v8_mips64el") { 131 clang_toolchain("clang_x64_v8_mips64el") {
124 toolchain_args = { 132 toolchain_args = {
125 current_cpu = "x64" 133 current_cpu = "x64"
126 v8_current_cpu = "mips64el" 134 v8_current_cpu = "mips64el"
127 current_os = "linux" 135 current_os = "linux"
128 } 136 }
129 } 137 }
130 138
139 clang_toolchain("clang_x64_v8_mips64") {
140 toolchain_args = {
141 current_cpu = "x64"
142 v8_current_cpu = "mips64"
143 current_os = "linux"
144 }
145 }
146
131 gcc_toolchain("x64") { 147 gcc_toolchain("x64") {
132 cc = "gcc" 148 cc = "gcc"
133 cxx = "g++" 149 cxx = "g++"
134 150
135 readelf = "readelf" 151 readelf = "readelf"
136 nm = "nm" 152 nm = "nm"
137 ar = "ar" 153 ar = "ar"
138 ld = cxx 154 ld = cxx
139 155
140 # Output linker map files for binary size analysis. 156 # Output linker map files for binary size analysis.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 nm = "nm" 211 nm = "nm"
196 ar = "ar" 212 ar = "ar"
197 ld = cxx 213 ld = cxx
198 214
199 toolchain_args = { 215 toolchain_args = {
200 current_cpu = "ppc64" 216 current_cpu = "ppc64"
201 current_os = "linux" 217 current_os = "linux"
202 is_clang = false 218 is_clang = false
203 } 219 }
204 } 220 }
221
222 gcc_toolchain("mips") {
223 cc = "gcc"
224 cxx = "g++"
225
226 readelf = "readelf"
227 nm = "nm"
228 ar = "ar"
229 ld = cxx
230
231 toolchain_args = {
232 current_cpu = "mips"
233 current_os = "linux"
234 is_clang = false
235 }
236 }
237
238 gcc_toolchain("mips64") {
239 cc = "gcc"
240 cxx = "g++"
241
242 readelf = "readelf"
243 nm = "nm"
244 ar = "ar"
245 ld = cxx
246
247 toolchain_args = {
248 current_cpu = "mips64"
249 current_os = "linux"
250 is_clang = false
251 }
252 }
OLDNEW
« no previous file with comments | « build/config/sysroot.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698