| 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/config/nacl/config.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/toolchain/ccache.gni") | 7 import("//build/toolchain/ccache.gni") |
| 8 import("//build/toolchain/goma.gni") | 8 import("//build/toolchain/goma.gni") |
| 9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 10 | 10 |
| 11 # This value will be inherited in the toolchain below. | 11 # This value will be inherited in the toolchain below. |
| 12 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 12 if (is_cfi) { |
| 13 concurrent_links = |
| 14 exec_script("get_concurrent_links.py", [ "--lto" ], "value") |
| 15 } else { |
| 16 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
| 17 } |
| 13 | 18 |
| 14 # This template defines a toolchain for something that works like gcc | 19 # This template defines a toolchain for something that works like gcc |
| 15 # (including clang). | 20 # (including clang). |
| 16 # | 21 # |
| 17 # It requires the following variables specifying the executables to run: | 22 # It requires the following variables specifying the executables to run: |
| 18 # - cc | 23 # - cc |
| 19 # - cxx | 24 # - cxx |
| 20 # - ar | 25 # - ar |
| 21 # - ld | 26 # - ld |
| 22 # and the following which is used in the toolchain_args | 27 # and the following which is used in the toolchain_args |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 nm = "${toolprefix}nm" | 456 nm = "${toolprefix}nm" |
| 452 | 457 |
| 453 forward_variables_from(invoker, | 458 forward_variables_from(invoker, |
| 454 [ | 459 [ |
| 455 "toolchain_cpu", | 460 "toolchain_cpu", |
| 456 "toolchain_os", | 461 "toolchain_os", |
| 457 "use_gold", | 462 "use_gold", |
| 458 ]) | 463 ]) |
| 459 } | 464 } |
| 460 } | 465 } |
| OLD | NEW |