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 25 matching lines...) Expand all Loading... |
36 [ | 36 [ |
37 "ar", | 37 "ar", |
38 "cc", | 38 "cc", |
39 "cxx", | 39 "cxx", |
40 "deps", | 40 "deps", |
41 "ld", | 41 "ld", |
42 "link_outputs", | 42 "link_outputs", |
43 "nm", | 43 "nm", |
44 "readelf", | 44 "readelf", |
45 "strip", | 45 "strip", |
46 "symbol_level", | |
47 "toolchain_cpu", | 46 "toolchain_cpu", |
48 ]) | 47 ]) |
49 | 48 |
50 if (defined(invoker.is_clang)) { | 49 if (defined(invoker.is_clang)) { |
51 is_clang = invoker.is_clang | 50 is_clang = invoker.is_clang |
52 } | 51 } |
53 if (defined(invoker.is_nacl_glibc)) { | 52 if (defined(invoker.is_nacl_glibc)) { |
54 is_nacl_glibc = invoker.is_nacl_glibc | 53 is_nacl_glibc = invoker.is_nacl_glibc |
55 } | 54 } |
| 55 if (defined(invoker.symbol_level)) { |
| 56 symbol_level = invoker.symbol_level |
| 57 } |
56 | 58 |
57 # We do not support component builds or sanitizers with the NaCl toolchains. | 59 # We do not support component builds or sanitizers with the NaCl toolchains. |
58 is_component_build = false | 60 is_component_build = false |
59 clear_sanitizers = true | 61 clear_sanitizers = true |
60 | 62 |
61 # We do not support tcmalloc in the NaCl toolchains. | 63 # We do not support tcmalloc in the NaCl toolchains. |
62 use_allocator = "none" | 64 use_allocator = "none" |
63 | 65 |
64 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision | 66 rebuild_define = "NACL_TC_REV=" + invoker.toolchain_revision |
65 } | 67 } |
66 } | 68 } |
OLD | NEW |