| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium 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 # This value will be inherited in the toolchain below. | 5 # This value will be inherited in the toolchain below. |
| 6 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 6 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
| 7 | 7 |
| 8 # This template defines a toolchain for something that works like gcc | 8 # This template defines a toolchain for something that works like gcc |
| 9 # (including clang). | 9 # (including clang). |
| 10 # | 10 # |
| 11 # It requires the following variables specifying the executables to run: | 11 # It requires the following variables specifying the executables to run: |
| 12 # - cc | 12 # - cc |
| 13 # - cxx | 13 # - cxx |
| 14 # - ar | 14 # - ar |
| 15 # - ld | 15 # - ld |
| 16 # and the following which is used in the toolchain_args | 16 # and the following which is used in the toolchain_args |
| 17 # - toolchain_cpu_arch (What "cpu_arch" should be set to when invoking a | 17 # - toolchain_cpu (What "current_cpu" should be set to when invoking a |
| 18 # build using this toolchain.) | 18 # build using this toolchain.) |
| 19 # - toolchain_os (What "os" should be set to when invoking a build using this | 19 # - toolchain_os (What "current_os" should be set to when invoking a |
| 20 # toolchain.) | 20 # build using this toolchain.) |
| 21 # | 21 # |
| 22 # Optional parameters: | 22 # Optional parameters: |
| 23 # - libs_section_prefix | 23 # - libs_section_prefix |
| 24 # - libs_section_postfix | 24 # - libs_section_postfix |
| 25 # The contents of these strings, if specified, will be placed around | 25 # The contents of these strings, if specified, will be placed around |
| 26 # the libs section of the linker line. It allows one to inject libraries | 26 # the libs section of the linker line. It allows one to inject libraries |
| 27 # at the beginning and end for all targets in a toolchain. | 27 # at the beginning and end for all targets in a toolchain. |
| 28 # - solink_libs_section_prefix | 28 # - solink_libs_section_prefix |
| 29 # - solink_libs_section_postfix | 29 # - solink_libs_section_postfix |
| 30 # Same as libs_section_{pre,post}fix except used for solink instead of link
. | 30 # Same as libs_section_{pre,post}fix except used for solink instead of link
. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 if (defined(invoker.is_clang)) { | 220 if (defined(invoker.is_clang)) { |
| 221 is_clang = invoker.is_clang | 221 is_clang = invoker.is_clang |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 | 224 |
| 225 if (defined(invoker.deps)) { | 225 if (defined(invoker.deps)) { |
| 226 deps = invoker.deps | 226 deps = invoker.deps |
| 227 } | 227 } |
| 228 } | 228 } |
| 229 } | 229 } |
| OLD | NEW |