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 19 matching lines...) Expand all Loading... | |
30 toolchain_cpu = "pnacl" | 30 toolchain_cpu = "pnacl" |
31 toolprefix = | 31 toolprefix = |
32 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-", | 32 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-", |
33 root_build_dir) | 33 root_build_dir) |
34 | 34 |
35 is_clang = true | 35 is_clang = true |
36 cc = toolprefix + "clang" | 36 cc = toolprefix + "clang" |
37 cxx = toolprefix + "clang++" | 37 cxx = toolprefix + "clang++" |
38 ar = toolprefix + "ar" | 38 ar = toolprefix + "ar" |
39 ld = cxx | 39 ld = cxx |
40 executable_extension = ".pexe.debug" | 40 strip = toolprefix + "finalize" |
Dirk Pranke
2015/11/03 23:49:13
maybe add a comment here about why we're using the
Roland McGrath
2015/11/04 00:06:44
Done.
| |
41 | 41 executable_extension = ".pexe" |
42 finalize = toolprefix + "finalize" | |
43 nonfinal_file = | |
44 "{{root_out_dir}}/{{target_output_name}}${executable_extension}" | |
45 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe" | |
46 postlink = "$finalize $nonfinal_file -o $finalized_file" | |
47 link_outputs = [ finalized_file ] | |
48 } | 42 } |
49 | 43 |
50 nacl_toolchain("newlib_pnacl_nonsfi") { | 44 nacl_toolchain("newlib_pnacl_nonsfi") { |
51 toolchain_package = "pnacl_newlib" | 45 toolchain_package = "pnacl_newlib" |
52 toolchain_revision = pnacl_newlib_rev | 46 toolchain_revision = pnacl_newlib_rev |
53 toolchain_cpu = "pnacl" | 47 toolchain_cpu = "pnacl" |
54 toolprefix = | 48 toolprefix = |
55 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-", | 49 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-", |
56 root_build_dir) | 50 root_build_dir) |
57 | 51 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 toolchain_tuple = "i686-nacl" | 176 toolchain_tuple = "i686-nacl" |
183 } | 177 } |
184 | 178 |
185 nacl_clang_toolchains("x64") { | 179 nacl_clang_toolchains("x64") { |
186 toolchain_tuple = "x86_64-nacl" | 180 toolchain_tuple = "x86_64-nacl" |
187 } | 181 } |
188 | 182 |
189 nacl_clang_toolchains("arm") { | 183 nacl_clang_toolchains("arm") { |
190 toolchain_tuple = "arm-nacl" | 184 toolchain_tuple = "arm-nacl" |
191 } | 185 } |
OLD | NEW |