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/config/nacl/config.gni") |
6 import("//build/toolchain/gcc_toolchain.gni") | 6 import("//build/toolchain/gcc_toolchain.gni") |
7 | 7 |
8 # This template defines a NaCl toolchain. | 8 # This template defines a NaCl toolchain. |
9 # | 9 # |
10 # It requires the following variables specifying the executables to run: | 10 # It requires the following variables specifying the executables to run: |
(...skipping 14 matching lines...) Expand all Loading... |
25 executable_extension = ".nexe" | 25 executable_extension = ".nexe" |
26 } | 26 } |
27 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision | 27 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision |
28 | 28 |
29 forward_variables_from(invoker, | 29 forward_variables_from(invoker, |
30 [ | 30 [ |
31 "ar", | 31 "ar", |
32 "cc", | 32 "cc", |
33 "cxx", | 33 "cxx", |
34 "deps", | 34 "deps", |
| 35 "is_clang_analysis_supported", |
35 "ld", | 36 "ld", |
36 "link_outputs", | 37 "link_outputs", |
37 "nm", | 38 "nm", |
38 "readelf", | 39 "readelf", |
39 "strip", | 40 "strip", |
40 ]) | 41 ]) |
41 | 42 |
42 toolchain_args = { | 43 toolchain_args = { |
43 # Use all values set on the invoker's toolchain_args. | 44 # Use all values set on the invoker's toolchain_args. |
44 forward_variables_from(invoker.toolchain_args, "*") | 45 forward_variables_from(invoker.toolchain_args, "*") |
45 | 46 |
46 current_os = "nacl" | 47 current_os = "nacl" |
47 | 48 |
48 # We do not support component builds with the NaCl toolchains. | 49 # We do not support component builds with the NaCl toolchains. |
49 is_component_build = false | 50 is_component_build = false |
50 | 51 |
51 # We do not support tcmalloc in the NaCl toolchains. | 52 # We do not support tcmalloc in the NaCl toolchains. |
52 use_allocator = "none" | 53 use_allocator = "none" |
53 } | 54 } |
54 } | 55 } |
55 } | 56 } |
OLD | NEW |