| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 rebase_path(get_label_info(tls_edit_label, "root_out_dir"), | 127 rebase_path(get_label_info(tls_edit_label, "root_out_dir"), |
| 128 root_build_dir) | 128 root_build_dir) |
| 129 tls_edit = "${host_toolchain_out_dir}/tls_edit" | 129 tls_edit = "${host_toolchain_out_dir}/tls_edit" |
| 130 | 130 |
| 131 nacl_toolchain("irt_" + toolchain_cpu) { | 131 nacl_toolchain("irt_" + toolchain_cpu) { |
| 132 is_clang = true | 132 is_clang = true |
| 133 cc = toolprefix + "clang" | 133 cc = toolprefix + "clang" |
| 134 cxx = toolprefix + "clang++" | 134 cxx = toolprefix + "clang++" |
| 135 ar = toolprefix + "ar" | 135 ar = toolprefix + "ar" |
| 136 readelf = toolprefix + "readelf" | 136 readelf = toolprefix + "readelf" |
| 137 strip = toolprefix + "strip" |
| 137 | 138 |
| 138 # Always build the IRT with full debugging symbols, regardless of | 139 # Always build the IRT with full debugging symbols, regardless of |
| 139 # how Chromium itself is being built (or other NaCl executables). | 140 # how Chromium itself is being built (or other NaCl executables). |
| 140 symbol_level = 2 | 141 symbol_level = 2 |
| 141 | 142 |
| 142 # Some IRT implementations (notably, Chromium's) contain C++ code, | 143 # Some IRT implementations (notably, Chromium's) contain C++ code, |
| 143 # so we need to link w/ the C++ linker. | 144 # so we need to link w/ the C++ linker. |
| 144 ld = "${python_path} ${link_irt} --tls-edit=${tls_edit} --link-cmd=${cxx} --
readelf-cmd=${readelf}" | 145 ld = "${python_path} ${link_irt} --tls-edit=${tls_edit} --link-cmd=${cxx} --
readelf-cmd=${readelf}" |
| 145 | 146 |
| 146 # TODO(ncbray): depend on link script | 147 # TODO(ncbray): depend on link script |
| (...skipping 17 matching lines...) Expand all Loading... |
| 164 toolchain_tuple = "i686-nacl" | 165 toolchain_tuple = "i686-nacl" |
| 165 } | 166 } |
| 166 | 167 |
| 167 nacl_clang_toolchains("x64") { | 168 nacl_clang_toolchains("x64") { |
| 168 toolchain_tuple = "x86_64-nacl" | 169 toolchain_tuple = "x86_64-nacl" |
| 169 } | 170 } |
| 170 | 171 |
| 171 nacl_clang_toolchains("arm") { | 172 nacl_clang_toolchains("arm") { |
| 172 toolchain_tuple = "arm-nacl" | 173 toolchain_tuple = "arm-nacl" |
| 173 } | 174 } |
| OLD | NEW |