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

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

Issue 1397953002: GN: Fix NaCl IRT build options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nit Created 5 years, 2 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 | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »
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("//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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 root_build_dir) 114 root_build_dir)
115 tls_edit = "${host_toolchain_out_dir}/tls_edit" 115 tls_edit = "${host_toolchain_out_dir}/tls_edit"
116 116
117 nacl_toolchain("irt_" + toolchain_cpu) { 117 nacl_toolchain("irt_" + toolchain_cpu) {
118 is_clang = true 118 is_clang = true
119 cc = toolprefix + "clang" 119 cc = toolprefix + "clang"
120 cxx = toolprefix + "clang++" 120 cxx = toolprefix + "clang++"
121 ar = toolprefix + "ar" 121 ar = toolprefix + "ar"
122 readelf = toolprefix + "readelf" 122 readelf = toolprefix + "readelf"
123 123
124 # Always build the IRT with full debugging symbols, regardless of
125 # how Chromium itself is being built (or other NaCl executables).
126 symbol_level = 2
127
124 # Some IRT implementations (notably, Chromium's) contain C++ code, 128 # Some IRT implementations (notably, Chromium's) contain C++ code,
125 # so we need to link w/ the C++ linker. 129 # so we need to link w/ the C++ linker.
126 ld = "${python_path} ${link_irt} --tls-edit=${tls_edit} --link-cmd=${cxx} -- readelf-cmd=${readelf}" 130 ld = "${python_path} ${link_irt} --tls-edit=${tls_edit} --link-cmd=${cxx} -- readelf-cmd=${readelf}"
127 131
128 # TODO(ncbray): depend on link script 132 # TODO(ncbray): depend on link script
129 deps = [ 133 deps = [
130 tls_edit_label, 134 tls_edit_label,
131 ] 135 ]
132 } 136 }
133 } 137 }
(...skipping 12 matching lines...) Expand all
146 toolchain_tuple = "i686-nacl" 150 toolchain_tuple = "i686-nacl"
147 } 151 }
148 152
149 nacl_clang_toolchains("x64") { 153 nacl_clang_toolchains("x64") {
150 toolchain_tuple = "x86_64-nacl" 154 toolchain_tuple = "x86_64-nacl"
151 } 155 }
152 156
153 nacl_clang_toolchains("arm") { 157 nacl_clang_toolchains("arm") {
154 toolchain_tuple = "arm-nacl" 158 toolchain_tuple = "arm-nacl"
155 } 159 }
OLDNEW
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698