DescriptionGN: Refactor Linux Clang toolchain definitions, plumb use_gold for toolchain_args()
This factors the commonalities of defining Clang toolchains into a
new "clang_toolchain" template. As well as reducing boilerplate in
build/toolchain/linux/BUILD.gn, this makes it more straightforward
to define variant toolchains the diverge slightly from the standard
Clang toolchains. One such divergence needed for the case of a
special toolchain to handle nacl_helper_bootstrap is the use_gold
setting; so that is plumbed through the gcc_toolchain template, and
the new clang_toolchain template, such that their invokers can get
their use_gold setting into the toolchain_args() block.
To make toolchain_args() overriding of use_gold affect the default
values of declare_args() variables that depend on use_gold, those
initializations are moved out of the declare_args() block.
BUG= none
R=dpranke@chromium.org
Committed: https://crrev.com/de55ff1d33fcf3b5312034542d642b54766a25be
Cr-Commit-Position: refs/heads/master@{#353081}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 7 (2 generated)
|