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

Side by Side Diff: build/config/nacl/config.gni

Issue 1475943003: gn: add support for clang for MIPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/compiler/BUILD.gn ('k') | build/toolchain/linux/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 declare_args() { 5 declare_args() {
6 # Native Client supports both Newlib and Glibc C libraries where Newlib 6 # Native Client supports both Newlib and Glibc C libraries where Newlib
7 # is assumed to be the default one; use this to determine whether Glibc 7 # is assumed to be the default one; use this to determine whether Glibc
8 # is being used instead. 8 # is being used instead.
9 is_nacl_glibc = false 9 is_nacl_glibc = false
10 } 10 }
11 11
12 nacl_toolchain_dir = "//native_client/toolchain/${host_os}_x86" 12 nacl_toolchain_dir = "//native_client/toolchain/${host_os}_x86"
13 13
14 if (is_nacl_glibc) { 14 if (is_nacl_glibc) {
15 if (current_cpu == "x86" || current_cpu == "x64") { 15 if (current_cpu == "x86" || current_cpu == "x64") {
16 nacl_toolchain_package = "nacl_x86_glibc" 16 nacl_toolchain_package = "nacl_x86_glibc"
17 } else if (current_cpu == "arm") { 17 } else if (current_cpu == "arm") {
18 nacl_toolchain_package = "nacl_arm_glibc" 18 nacl_toolchain_package = "nacl_arm_glibc"
19 } 19 }
20 } else { 20 } else {
21 nacl_toolchain_package = "pnacl_newlib" 21 nacl_toolchain_package = "pnacl_newlib"
22 } 22 }
23 23
24 if (current_cpu == "pnacl") { 24 if (current_cpu == "pnacl") {
25 nacl_tuple = "pnacl" 25 nacl_tuple = "pnacl"
26 } else if (current_cpu == "x86" || current_cpu == "x64") { 26 } else if (current_cpu == "x86" || current_cpu == "x64") {
27 nacl_tuple = "x86_64-nacl" 27 nacl_tuple = "x86_64-nacl"
28 } else if (current_cpu == "arm") { 28 } else if (current_cpu == "arm") {
29 nacl_tuple = "arm-nacl" 29 nacl_tuple = "arm-nacl"
30 } else if (current_cpu == "mipsel") {
31 nacl_tuple = "mipsel-nacl"
30 } 32 }
31 33
32 nacl_toolchain_bindir = "${nacl_toolchain_dir}/${nacl_toolchain_package}/bin" 34 nacl_toolchain_bindir = "${nacl_toolchain_dir}/${nacl_toolchain_package}/bin"
33 nacl_toolchain_tooldir = 35 nacl_toolchain_tooldir =
34 "${nacl_toolchain_dir}/${nacl_toolchain_package}/${nacl_tuple}" 36 "${nacl_toolchain_dir}/${nacl_toolchain_package}/${nacl_tuple}"
35 nacl_toolprefix = "${nacl_toolchain_bindir}/${nacl_tuple}-" 37 nacl_toolprefix = "${nacl_toolchain_bindir}/${nacl_tuple}-"
36 38
37 nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu 39 nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu
38 is_nacl_irt = current_toolchain == nacl_irt_toolchain 40 is_nacl_irt = current_toolchain == nacl_irt_toolchain
39 41
40 # Non-SFI mode is a lightweight sandbox used by Chrome OS for running ARC 42 # Non-SFI mode is a lightweight sandbox used by Chrome OS for running ARC
41 # applications. 43 # applications.
42 nacl_nonsfi_toolchain = "//build/toolchain/nacl:newlib_pnacl_nonsfi" 44 nacl_nonsfi_toolchain = "//build/toolchain/nacl:newlib_pnacl_nonsfi"
43 is_nacl_nonsfi = current_toolchain == nacl_nonsfi_toolchain 45 is_nacl_nonsfi = current_toolchain == nacl_nonsfi_toolchain
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/toolchain/linux/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698