You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tools in rules_cc like gcov and llvm-cov, expect absolute paths in
the toolchain. This clearly isn't ideal but updating all callers as a
blocker to being able to use rules based toolchains also isn't ideal.
This allows backfilling those absolute tool paths with the new
cc_legacy_tool rule.
"files": "(dict[ActionTypeInfo, depset[File]]) Files required for the toolchain, keyed by the action type.",
236
246
"allowlist_include_directories": "(depset[DirectoryInfo]) Built-in include directories implied by this toolchain's args and tools that should be allowlisted in Bazel's include checker",
237
247
"allowlist_absolute_include_directories": "(List[str]) Built-in include directories allowed the sandbox. Use with care",
248
+
"legacy_tools": "(Sequence[LegacyToolInfo]) Legacy tools specified by path rather than by label",
| <aid="cc_toolchain-args"></a>args | (List[Label]) A list of [`cc_args`](#cc_args) and `cc_arg_list` to apply across this toolchain. |`[]`|
841
841
| <aid="cc_toolchain-artifact_name_patterns"></a>artifact_name_patterns | (List[Label]) A list of `cc_artifact_name_pattern` defining patterns for names of artifacts created by this toolchain. |`[]`|
842
842
| <aid="cc_toolchain-make_variables"></a>make_variables | (List[Label]) A list of `cc_make_variable` defining variable substitutions. |`[]`|
843
+
| <aid="cc_toolchain-legacy_tools"></a>legacy_tools | (List[Label]) A list of `cc_legacy_tool` rules that specify tools by filesystem path. These are used to populate the legacy `tool_paths` parameter of the toolchain configuration, which is required by some Bazel features (e.g. coverage). |`[]`|
843
844
| <aid="cc_toolchain-known_features"></a>known_features | (List[Label]) A list of [`cc_feature`](#cc_feature) rules that this toolchain supports. Whether or not these [features](https://bazel.build/docs/cc-toolchain-config-reference#features) are enabled may change over the course of a build. See the documentation for [`cc_feature`](#cc_feature) for more information. |`[]`|
844
845
| <aid="cc_toolchain-enabled_features"></a>enabled_features | (List[Label]) A list of [`cc_feature`](#cc_feature) rules whose initial state should be `enabled`. Note that it is still possible for these [features](https://bazel.build/docs/cc-toolchain-config-reference#features) to be disabled over the course of a build through other mechanisms. See the documentation for [`cc_feature`](#cc_feature) for more information. |`[]`|
845
846
| <aid="cc_toolchain-libc_top"></a>libc_top | (Label) A collection of artifacts for libc passed as inputs to compile/linking actions. See [`cc_toolchain.libc_top`](https://bazel.build/reference/be/c-cpp#cc_toolchain.libc_top) for more information. |`None`|
0 commit comments