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/nacl/config.gni") |
5 import("//build/toolchain/gcc_toolchain.gni") | 6 import("//build/toolchain/gcc_toolchain.gni") |
6 | 7 |
7 # This template defines a NaCl toolchain. | 8 # This template defines a NaCl toolchain. |
8 # | 9 # |
9 # It requires the following variables specifying the executables to run: | 10 # It requires the following variables specifying the executables to run: |
10 # - cc | 11 # - cc |
11 # - cxx | 12 # - cxx |
12 # - ar | 13 # - ar |
13 # - ld | 14 # - ld |
14 # and the following which is used in the toolchain_args | 15 # and the following which is used in the toolchain_args |
(...skipping 16 matching lines...) Expand all Loading... |
31 executable_extension = ".nexe" | 32 executable_extension = ".nexe" |
32 } | 33 } |
33 | 34 |
34 forward_variables_from(invoker, | 35 forward_variables_from(invoker, |
35 [ | 36 [ |
36 "ar", | 37 "ar", |
37 "cc", | 38 "cc", |
38 "cxx", | 39 "cxx", |
39 "deps", | 40 "deps", |
40 "is_clang", | 41 "is_clang", |
| 42 "is_nacl_glibc", |
41 "ld", | 43 "ld", |
42 "link_outputs", | 44 "link_outputs", |
43 "postlink", | 45 "postlink", |
44 "toolchain_cpu", | 46 "toolchain_cpu", |
45 ]) | 47 ]) |
46 | 48 |
47 # We do not suport component builds or sanitizers with the NaCl toolchains. | 49 # We do not suport component builds or sanitizers with the NaCl toolchains. |
48 is_component_build = false | 50 is_component_build = false |
49 clear_sanitizers = true | 51 clear_sanitizers = true |
50 | 52 |
51 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision | 53 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision |
52 } | 54 } |
53 } | 55 } |
OLD | NEW |