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("//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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 toolchain_tuple = "i686-nacl" | 164 toolchain_tuple = "i686-nacl" |
| 165 } | 165 } |
| 166 | 166 |
| 167 nacl_clang_toolchains("x64") { | 167 nacl_clang_toolchains("x64") { |
| 168 toolchain_tuple = "x86_64-nacl" | 168 toolchain_tuple = "x86_64-nacl" |
| 169 } | 169 } |
| 170 | 170 |
| 171 nacl_clang_toolchains("arm") { | 171 nacl_clang_toolchains("arm") { |
| 172 toolchain_tuple = "arm-nacl" | 172 toolchain_tuple = "arm-nacl" |
| 173 } | 173 } |
| 174 | |
| 175 nacl_toolchain("newlib_pnacl_nonsfi") { | |
|
Mark Seaborn
2015/10/22 21:48:30
How about putting this immediately after nacl_tool
Petr Hosek
2015/10/23 03:01:15
Done.
| |
| 176 toolchain_package = "pnacl_newlib" | |
| 177 toolchain_revision = pnacl_newlib_rev | |
| 178 toolchain_cpu = "pnacl" | |
| 179 toolprefix = | |
| 180 rebase_path("${nacl_toolchain_dir}/${toolchain_package}/bin/pnacl-", | |
| 181 root_build_dir) | |
| 182 is_nacl_nonsfi = true | |
| 183 | |
| 184 is_clang = true | |
| 185 cc = toolprefix + "clang" | |
| 186 cxx = toolprefix + "clang++" | |
| 187 ar = toolprefix + "ar" | |
| 188 ld = cxx | |
| 189 executable_extension = "" | |
| 190 } | |
| OLD | NEW |