diff options
author | spomorski <spomorski@google.com> | 2017-11-09 18:57:15 +0100 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-11-10 23:25:54 +0100 |
commit | f69d07959627887f31b0978648599c92226bba6c (patch) | |
tree | de7fcdf5dbaa81ce7018b93e452b3788c5811299 /site/docs/toolchains.md | |
parent | 9135b7bfc4245e16bd6599e22dce0ba077e0d10a (diff) |
Housekeeping.
PiperOrigin-RevId: 175171950
Diffstat (limited to 'site/docs/toolchains.md')
-rw-r--r-- | site/docs/toolchains.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/site/docs/toolchains.md b/site/docs/toolchains.md index 7a10701e49..7eacb0cfe3 100644 --- a/site/docs/toolchains.md +++ b/site/docs/toolchains.md @@ -10,7 +10,7 @@ title: Toolchains - [Creating a toolchain rule](#creating-a-toolchain-rule) - [Creating a toolchain definition](#creating-a-toolchain-definition) - [Registering a toolchain](#registering-a-toolchain) -- [Adding toolchain support to Skylark rules](#adding-toolchain-support-to-skylark-rules) +- [Using a toolchain in a Skylark rule](#using-a-toolchain-in-a-skylark-rule) - [Debugging a toolchain](#debugging-a-toolchain) ## Overview @@ -116,7 +116,7 @@ my_toolchain(name = 'darwin_toolchain_impl', ) ``` -## Creating a toolchain definition +### Creating a toolchain definition The toolchain definition is an instance of the `toolchain()` rule that specifies the toolchain type, execution and target constraints, and the label of the @@ -138,7 +138,7 @@ toolchain(name = 'linux_toolchain', ) ``` -## Registering a toolchain +### Registering a toolchain Once the toolchain rule and definition exist, register the toolchain to make Bazel aware of it. You can register a toolchain either via the project's @@ -153,7 +153,7 @@ register_toolchains( ) ``` -## Adding toolchain support to Skylark rules +## Using a toolchain in a Skylark rule To use a toolchain in a Skylark rule, add the toolchain type to the rule definition. For example: |