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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |