Skip to content

Commit 6a99ee8

Browse files
gregestrencopybara-github
authored andcommitted
Update toolchain resolution description docs.
PiperOrigin-RevId: 855394878 Change-Id: I71497cdc3b6105f86c634f4f980cf25dcc0d0a37
1 parent d11f60f commit 6a99ee8

File tree

1 file changed

+8
-0
lines changed
  • src/main/java/com/google/devtools/build/lib/skyframe/toolchains

1 file changed

+8
-0
lines changed

src/main/java/com/google/devtools/build/lib/skyframe/toolchains/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22

33
Several SkyFunction classes implement the [toolchain resolution] process:
44

5+
1. The process is run for each distinct execution group the rule or aspect
6+
uses. In the case of [automatic execution groups](https://bazel.build/extending/auto-exec-groups),
7+
this will be one execution group per declared toolchain.
8+
59
1. [`RegisteredToolchainsFunction`] and
610
[`RegisteredExecutionPlatformsFunction`] find available toolchains and
711
execution platforms, based on the current configuration and WORKSPACE file.
812

13+
1. These lists will be filtered based on the [`platform.required_settings`](https://bazel.build/reference/be/platforms-and-toolchains#platform.required_settings)
14+
and [`toolchain.target_settings`](https://bazel.build/reference/be/platforms-and-toolchains#toolchain.target_settings)
15+
attributes.
16+
917
1. [`SingleToolchainResolutionFunction`] resolves a single toolchain type for
1018
every execution platform. That is, for every execution platform it finds the
1119
best registered toolchain to use based on the following criteria:

0 commit comments

Comments
 (0)