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 26 matching lines...) Expand all Loading... |
41 if (defined(invoker.postlink)) { | 42 if (defined(invoker.postlink)) { |
42 postlink = invoker.postlink | 43 postlink = invoker.postlink |
43 } | 44 } |
44 if (defined(invoker.link_outputs)) { | 45 if (defined(invoker.link_outputs)) { |
45 link_outputs = invoker.link_outputs | 46 link_outputs = invoker.link_outputs |
46 } | 47 } |
47 | 48 |
48 # We do not wish to suport shared builds with the NaCl toolchains. | 49 # We do not wish to suport shared builds with the NaCl toolchains. |
49 is_component_build = false | 50 is_component_build = false |
50 | 51 |
| 52 is_nacl_glibc = invoker.is_nacl_glibc |
| 53 |
51 gcc_toolchain(target_name) { | 54 gcc_toolchain(target_name) { |
52 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision | 55 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision |
53 if (defined(invoker.deps)) { | 56 if (defined(invoker.deps)) { |
54 deps = invoker.deps | 57 deps = invoker.deps |
55 } | 58 } |
56 } | 59 } |
57 } | 60 } |
OLD | NEW |