| 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 import("//build/config/nacl/config.gni") |
| 5 import("//build/toolchain/toolchain.gni") | 6 import("//build/toolchain/toolchain.gni") |
| 6 | 7 |
| 7 # This value will be inherited in the toolchain below. | 8 # This value will be inherited in the toolchain below. |
| 8 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 9 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
| 9 | 10 |
| 10 # This template defines a toolchain for something that works like gcc | 11 # This template defines a toolchain for something that works like gcc |
| 11 # (including clang). | 12 # (including clang). |
| 12 # | 13 # |
| 13 # It requires the following variables specifying the executables to run: | 14 # It requires the following variables specifying the executables to run: |
| 14 # - cc | 15 # - cc |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 # These values need to be passed through unchanged. | 301 # These values need to be passed through unchanged. |
| 301 target_os = target_os | 302 target_os = target_os |
| 302 target_cpu = target_cpu | 303 target_cpu = target_cpu |
| 303 | 304 |
| 304 if (defined(invoker.is_clang)) { | 305 if (defined(invoker.is_clang)) { |
| 305 is_clang = invoker.is_clang | 306 is_clang = invoker.is_clang |
| 306 } | 307 } |
| 307 if (defined(invoker.is_component_build)) { | 308 if (defined(invoker.is_component_build)) { |
| 308 is_component_build = invoker.is_component_build | 309 is_component_build = invoker.is_component_build |
| 309 } | 310 } |
| 311 if (defined(invoker.is_nacl_glibc)) { |
| 312 is_nacl_glibc = invoker.is_nacl_glibc |
| 313 } |
| 310 } | 314 } |
| 311 | 315 |
| 312 if (defined(invoker.deps)) { | 316 if (defined(invoker.deps)) { |
| 313 deps = invoker.deps | 317 deps = invoker.deps |
| 314 } | 318 } |
| 315 } | 319 } |
| 316 } | 320 } |
| OLD | NEW |