Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: build/toolchain/nacl/BUILD.gn

Issue 893993005: NaCl-side GN changes to enable NaCl in Linux x64 Chrome builds. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@nacl_trusted_3
Patch Set: patch for review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/shared/serialization/BUILD.gn » ('j') | src/trusted/service_runtime/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | src/shared/serialization/BUILD.gn » ('j') | src/trusted/service_runtime/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698