platform_common

Functions for Starlark to interact with the platform APIs.

ConstraintSettingInfo

Provider platform_common.ConstraintSettingInfo

Experimental. This API is experimental and may change at any time. Please do not depend on it. It may be enabled on an experimental basis by setting --experimental_platform_api
The provider constructor for ConstraintSettingInfo. The constructor takes the label that uniquely identifies the constraint (and which should always be ctx.label). Note: This API is experimental and may change at any time. It is disabled by default, but may be enabled with --experimental_platform_api

ConstraintValueInfo

Provider platform_common.ConstraintValueInfo

Experimental. This API is experimental and may change at any time. Please do not depend on it. It may be enabled on an experimental basis by setting --experimental_platform_api
The provider constructor for ConstraintValueInfo. The constructor takes the label that uniquely identifies the constraint value (and which should always be ctx.label), and the ConstraintSettingInfo which the value belongs to. Note: This API is experimental and may change at any time. It is disabled by default, but may be enabled with --experimental_platform_api

PlatformInfo

Provider platform_common.PlatformInfo

Experimental. This API is experimental and may change at any time. Please do not depend on it. It may be enabled on an experimental basis by setting --experimental_platform_api
The provider constructor for PlatformInfo. The constructor takes the list of ConstraintValueInfo providers that defines the platform. Note: This API is experimental and may change at any time. It is disabled by default, but may be enabled with --experimental_platform_api

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 the type of the toolchain, and a map of the toolchain's data.