Extensions > API reference > platform_common

platform_common

Functions for Starlark to interact with the platform APIs.

TemplateVariableInfo

Provider platform_common.TemplateVariableInfo

The provider used to retrieve the provider that contains the template variables defined by a particular toolchain, for example by calling ctx.attr._cc_toolchain[platform_common.TemplateVariableInfo].make_variables[]

ToolchainInfo

Provider platform_common.ToolchainInfo

The provider constructor for ToolchainInfo. The constructor takes a map of the toolchain's data.