| 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/cc_wrapper.gni") | 7 import("//build/toolchain/cc_wrapper.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 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 # - is_component_build | 91 # - is_component_build |
| 92 # Whether to forcibly enable or disable component builds for this | 92 # Whether to forcibly enable or disable component builds for this |
| 93 # toolchain; if not specified, the toolchain will inherit the | 93 # toolchain; if not specified, the toolchain will inherit the |
| 94 # default setting. | 94 # default setting. |
| 95 # - is_nacl_glibc | 95 # - is_nacl_glibc |
| 96 # Whether NaCl code is built using Glibc instead of Newlib. | 96 # Whether NaCl code is built using Glibc instead of Newlib. |
| 97 # - cc_wrapper | 97 # - cc_wrapper |
| 98 # Override the global cc_wrapper setting. e.g. "ccache" or "icecc". | 98 # Override the global cc_wrapper setting. e.g. "ccache" or "icecc". |
| 99 # useful to opt-out of cc_wrapper in a particular toolchain by setting | 99 # useful to opt-out of cc_wrapper in a particular toolchain by setting |
| 100 # cc_wrapper = "" in it. | 100 # cc_wrapper = "" in it. |
| 101 # - use_debug_fission |
| 102 # Override the global use_debug_fission setting, useful if the particular |
| 103 # toolchain should not be generating split-dwarf code. |
| 101 # - use_goma | 104 # - use_goma |
| 102 # Override the global use_goma setting, useful to opt-out of goma in a | 105 # Override the global use_goma setting, useful to opt-out of goma in a |
| 103 # particular toolchain by setting use_gome = false in it. | 106 # particular toolchain by setting use_gome = false in it. |
| 104 # - use_gold | 107 # - use_gold |
| 105 # Override the global use_gold setting, useful if the particular | 108 # Override the global use_gold setting, useful if the particular |
| 106 # toolchain has a custom link step that is not actually using Gold. | 109 # toolchain has a custom link step that is not actually using Gold. |
| 107 template("gcc_toolchain") { | 110 template("gcc_toolchain") { |
| 108 toolchain(target_name) { | 111 toolchain(target_name) { |
| 109 assert(defined(invoker.ar), "gcc_toolchain() must specify a \"ar\" value") | 112 assert(defined(invoker.ar), "gcc_toolchain() must specify a \"ar\" value") |
| 110 assert(defined(invoker.cc), "gcc_toolchain() must specify a \"cc\" value") | 113 assert(defined(invoker.cc), "gcc_toolchain() must specify a \"cc\" value") |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 } | 457 } |
| 455 if (defined(invoker.is_nacl_glibc)) { | 458 if (defined(invoker.is_nacl_glibc)) { |
| 456 is_nacl_glibc = invoker.is_nacl_glibc | 459 is_nacl_glibc = invoker.is_nacl_glibc |
| 457 } | 460 } |
| 458 if (defined(invoker.symbol_level)) { | 461 if (defined(invoker.symbol_level)) { |
| 459 symbol_level = invoker.symbol_level | 462 symbol_level = invoker.symbol_level |
| 460 } | 463 } |
| 461 if (defined(invoker.use_allocator)) { | 464 if (defined(invoker.use_allocator)) { |
| 462 use_allocator = invoker.use_allocator | 465 use_allocator = invoker.use_allocator |
| 463 } | 466 } |
| 467 if (defined(invoker.use_debug_fission)) { |
| 468 use_debug_fission = invoker.use_debug_fission |
| 469 } |
| 464 if (defined(invoker.use_gold)) { | 470 if (defined(invoker.use_gold)) { |
| 465 use_gold = invoker.use_gold | 471 use_gold = invoker.use_gold |
| 466 } | 472 } |
| 467 if (defined(invoker.use_sysroot)) { | 473 if (defined(invoker.use_sysroot)) { |
| 468 use_sysroot = invoker.use_sysroot | 474 use_sysroot = invoker.use_sysroot |
| 469 } | 475 } |
| 470 | 476 |
| 471 # Disable sanitizers for non-default toolchains. | 477 # Disable sanitizers for non-default toolchains. |
| 472 is_asan = false | 478 is_asan = false |
| 473 is_cfi = false | 479 is_cfi = false |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 ar = "${toolprefix}ar" | 519 ar = "${toolprefix}ar" |
| 514 nm = "${toolprefix}nm" | 520 nm = "${toolprefix}nm" |
| 515 | 521 |
| 516 forward_variables_from(invoker, | 522 forward_variables_from(invoker, |
| 517 [ | 523 [ |
| 518 "toolchain_cpu", | 524 "toolchain_cpu", |
| 519 "toolchain_os", | 525 "toolchain_os", |
| 520 "use_gold", | 526 "use_gold", |
| 521 "strip", | 527 "strip", |
| 522 ]) | 528 ]) |
| 529 |
| 530 if (defined(invoker.use_debug_fission)) { |
| 531 use_debug_fission = invoker.use_debug_fission |
| 532 } |
| 523 } | 533 } |
| 524 } | 534 } |
| OLD | NEW |