| 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/toolchain/nacl_toolchain.gni") | 7 import("//build/toolchain/nacl_toolchain.gni") |
| 7 | 8 |
| 8 nacl_toolchain_dir = rebase_path("//native_client/toolchain", root_build_dir) | |
| 9 os_toolchain_dir = "${nacl_toolchain_dir}/${host_os}_x86" | |
| 10 | |
| 11 # 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 |
| 12 # rebuilt when a toolchain is updated. | 10 # rebuilt when a toolchain is updated. |
| 13 # Idea we could use the toolchain deps feature, but currently that feature is | 11 # Idea we could use the toolchain deps feature, but currently that feature is |
| 14 # bugged and does not trigger a rebuild. | 12 # bugged and does not trigger a rebuild. |
| 15 # https://code.google.com/p/chromium/issues/detail?id=431880 | 13 # https://code.google.com/p/chromium/issues/detail?id=431880 |
| 16 # Calls to get the toolchain revision are relatively slow, so do them all in a | 14 # Calls to get the toolchain revision are relatively slow, so do them all in a |
| 17 # single batch to amortize python startup, etc. | 15 # single batch to amortize python startup, etc. |
| 18 revisions = exec_script("//native_client/build/get_toolchain_revision.py", | 16 revisions = exec_script("//native_client/build/get_toolchain_revision.py", |
| 19 [ | 17 [ |
| 20 "nacl_x86_glibc", | 18 "nacl_x86_glibc", |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 toolchain_tuple = "i686-nacl" | 138 toolchain_tuple = "i686-nacl" |
| 141 } | 139 } |
| 142 | 140 |
| 143 nacl_clang_toolchains("x64") { | 141 nacl_clang_toolchains("x64") { |
| 144 toolchain_tuple = "x86_64-nacl" | 142 toolchain_tuple = "x86_64-nacl" |
| 145 } | 143 } |
| 146 | 144 |
| 147 nacl_clang_toolchains("arm") { | 145 nacl_clang_toolchains("arm") { |
| 148 toolchain_tuple = "arm-nacl" | 146 toolchain_tuple = "arm-nacl" |
| 149 } | 147 } |
| OLD | NEW |