OLD | NEW |
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client 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/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
7 import("//build/toolchain/nacl_toolchain.gni") | 7 import("//build/toolchain/nacl_toolchain.gni") |
8 | 8 |
9 # Add the toolchain revision as a preprocessor define so that sources are | 9 # Add the toolchain revision as a preprocessor define so that sources are |
10 # rebuilt when a toolchain is updated. | 10 # rebuilt when a toolchain is updated. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 scriptprefix = "cmd /c call " | 47 scriptprefix = "cmd /c call " |
48 scriptsuffix = ".bat" | 48 scriptsuffix = ".bat" |
49 } else { | 49 } else { |
50 scriptprefix = "" | 50 scriptprefix = "" |
51 scriptsuffix = "" | 51 scriptsuffix = "" |
52 } | 52 } |
53 | 53 |
54 # When the compilers are run via goma or ccache rather than directly by | 54 # When the compilers are run via goma or ccache rather than directly by |
55 # GN/Ninja, the goma/ccache wrapper handles .bat files but gets confused | 55 # GN/Ninja, the goma/ccache wrapper handles .bat files but gets confused |
56 # by being given the scriptprefix. | 56 # by being given the scriptprefix. |
57 if (host_os == "win" && !use_goma && !use_ccache) { | 57 if (host_os == "win" && !use_goma && cc_wrapper == "") { |
58 compiler_scriptprefix = scriptprefix | 58 compiler_scriptprefix = scriptprefix |
59 } else { | 59 } else { |
60 compiler_scriptprefix = "" | 60 compiler_scriptprefix = "" |
61 } | 61 } |
62 | 62 |
63 nacl_toolchain(target_name) { | 63 nacl_toolchain(target_name) { |
64 toolchain_package = "pnacl_newlib" | 64 toolchain_package = "pnacl_newlib" |
65 toolchain_revision = pnacl_newlib_rev | 65 toolchain_revision = pnacl_newlib_rev |
66 toolchain_cpu = "pnacl" | 66 toolchain_cpu = "pnacl" |
67 toolprefix = | 67 toolprefix = |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 toolchain_tuple = "i686-nacl" | 260 toolchain_tuple = "i686-nacl" |
261 } | 261 } |
262 | 262 |
263 nacl_clang_toolchains("x64") { | 263 nacl_clang_toolchains("x64") { |
264 toolchain_tuple = "x86_64-nacl" | 264 toolchain_tuple = "x86_64-nacl" |
265 } | 265 } |
266 | 266 |
267 nacl_clang_toolchains("arm") { | 267 nacl_clang_toolchains("arm") { |
268 toolchain_tuple = "arm-nacl" | 268 toolchain_tuple = "arm-nacl" |
269 } | 269 } |
OLD | NEW |