| 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/toolchain/nacl_toolchain.gni") | 6 import("//build/toolchain/nacl_toolchain.gni") |
| 7 | 7 |
| 8 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir) | 8 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir) |
| 9 os_toolchain_dir = "${nacl_toolchain_dir}/${current_os}_x86" | 9 os_toolchain_dir = "${nacl_toolchain_dir}/${current_os}_x86" |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 nacl_toolchain("newlib_pnacl") { | 67 nacl_toolchain("newlib_pnacl") { |
| 68 toolchain_package = "pnacl_newlib" | 68 toolchain_package = "pnacl_newlib" |
| 69 toolchain_revision = pnacl_newlib_rev | 69 toolchain_revision = pnacl_newlib_rev |
| 70 toolchain_cpu = "pnacl" | 70 toolchain_cpu = "pnacl" |
| 71 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/pnacl-" | 71 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/pnacl-" |
| 72 | 72 |
| 73 cc = toolprefix + "clang" | 73 cc = toolprefix + "clang" |
| 74 cxx = toolprefix + "clang++" | 74 cxx = toolprefix + "clang++" |
| 75 ar = toolprefix + "ar" | 75 ar = toolprefix + "ar" |
| 76 ld = cxx | 76 ld = cxx |
| 77 executable_extension = ".pexe-debug" | 77 executable_extension = ".pexe.debug" |
| 78 | 78 |
| 79 finalize = toolprefix + "finalize" | 79 finalize = toolprefix + "finalize" |
| 80 nonfinal_file = | 80 nonfinal_file = |
| 81 "{{root_out_dir}}/{{target_output_name}}${executable_extension}" | 81 "{{root_out_dir}}/{{target_output_name}}${executable_extension}" |
| 82 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe" | 82 finalized_file = "{{root_out_dir}}/{{target_output_name}}.pexe" |
| 83 postlink = "$finalize $nonfinal_file -o $finalized_file" | 83 postlink = "$finalize $nonfinal_file -o $finalized_file" |
| 84 link_outputs = [ finalized_file ] | 84 link_outputs = [ finalized_file ] |
| 85 } | 85 } |
| 86 | 86 |
| 87 nacl_toolchain("glibc_x86") { | 87 nacl_toolchain("glibc_x86") { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 # Some IRT implementations (notably, Chromium's) contain C++ code, | 195 # Some IRT implementations (notably, Chromium's) contain C++ code, |
| 196 # so we need to link w/ the C++ linker. | 196 # so we need to link w/ the C++ linker. |
| 197 ld = "${python_path} ${link_irt} --tls-edit=tls_edit --link-cmd=${cxx} --reade
lf-cmd=${readelf}" | 197 ld = "${python_path} ${link_irt} --tls-edit=tls_edit --link-cmd=${cxx} --reade
lf-cmd=${readelf}" |
| 198 | 198 |
| 199 # TODO(ncbray): depend on link script | 199 # TODO(ncbray): depend on link script |
| 200 deps = [ | 200 deps = [ |
| 201 "//native_client/src/tools/tls_edit:tls_edit($host_toolchain)", | 201 "//native_client/src/tools/tls_edit:tls_edit($host_toolchain)", |
| 202 ] | 202 ] |
| 203 } | 203 } |
| OLD | NEW |