Chromium Code Reviews| 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("//native_client/build/config/sysroot.gni") | 5 import("//native_client/build/config/sysroot.gni") |
| 6 import("//native_client/build/toolchain/nacl_toolchain.gni") | 6 import("//native_client/build/toolchain/nacl_toolchain.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir) | 9 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir) |
| 10 } | 10 } |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 toolchain_revision = pnacl_newlib_rev | 140 toolchain_revision = pnacl_newlib_rev |
| 141 toolchain_cpu_arch = "x64" | 141 toolchain_cpu_arch = "x64" |
| 142 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/x86_64-nacl-" | 142 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/x86_64-nacl-" |
| 143 is_clang = true | 143 is_clang = true |
| 144 | 144 |
| 145 cc = toolprefix + "clang" | 145 cc = toolprefix + "clang" |
| 146 cxx = toolprefix + "clang++" | 146 cxx = toolprefix + "clang++" |
| 147 ar = toolprefix + "ar" | 147 ar = toolprefix + "ar" |
| 148 readelf = toolprefix + "readelf" | 148 readelf = toolprefix + "readelf" |
| 149 # Link with cc to avoid including any C++ libs. | 149 # Link with cc to avoid including any C++ libs. |
| 150 ld = "${python_path} ${link_irt} --tls-edit=tls_edit --link-cmd=${cc} --readel f-cmd=${readelf}" | 150 ld = "${python_path} ${link_irt} --tls-edit=tls_edit --link-cmd=${cxx} --reade lf-cmd=${readelf}" |
|
Dirk Pranke
2015/02/04 23:26:51
This change is needed because Chrome's implementat
Roland McGrath
2015/02/04 23:31:36
Put comments in the code, not in the review. The
Dirk Pranke
2015/02/04 23:35:35
Ah, good point. Will do.
| |
| 151 | 151 |
| 152 # TODO(ncbray): depend on link script | 152 # TODO(ncbray): depend on link script |
| 153 deps = [ | 153 deps = [ |
| 154 "//native_client/src/tools/tls_edit:tls_edit($host_toolchain)", | 154 "//native_client/src/tools/tls_edit:tls_edit($host_toolchain)", |
| 155 ] | 155 ] |
| 156 } | 156 } |
| 157 | 157 |
| 158 # Uses newlib to match the Chrome build. | 158 # Uses newlib to match the Chrome build. |
| 159 nacl_toolchain("irt_arm") { | 159 nacl_toolchain("irt_arm") { |
| 160 toolchain_package = "nacl_arm_newlib" | 160 toolchain_package = "nacl_arm_newlib" |
| 161 toolchain_revision = nacl_arm_newlib_rev | 161 toolchain_revision = nacl_arm_newlib_rev |
| 162 toolchain_cpu_arch = "arm" | 162 toolchain_cpu_arch = "arm" |
| 163 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/arm-nacl-" | 163 toolprefix = "${os_toolchain_dir}/${toolchain_package}/bin/arm-nacl-" |
| 164 | 164 |
| 165 cc = toolprefix + "gcc" | 165 cc = toolprefix + "gcc" |
| 166 cxx = toolprefix + "g++" | 166 cxx = toolprefix + "g++" |
| 167 ar = toolprefix + "ar" | 167 ar = toolprefix + "ar" |
| 168 readelf = toolprefix + "readelf" | 168 readelf = toolprefix + "readelf" |
| 169 # Link with cc to avoid including any C++ libs. | 169 # Link with cc to avoid including any C++ libs. |
| 170 ld = "${python_path} ${link_irt} --tls-edit=tls_edit --link-cmd=${cc} --readel f-cmd=${readelf}" | 170 ld = "${python_path} ${link_irt} --tls-edit=tls_edit --link-cmd=${cc} --readel f-cmd=${readelf}" |
| 171 | 171 |
| 172 # TODO(ncbray): depend on link script | 172 # TODO(ncbray): depend on link script |
| 173 deps = [ | 173 deps = [ |
| 174 "//native_client/src/tools/tls_edit:tls_edit($host_toolchain)", | 174 "//native_client/src/tools/tls_edit:tls_edit($host_toolchain)", |
| 175 ] | 175 ] |
| 176 } | 176 } |
| OLD | NEW |