IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/platform

You can read about the migration, and let us know what you think.

Extensions > API reference > platform

platform

The platform configuration.

host_platform

Label platform.host_platform

The current host platform

platform

Label platform.platform

The current target platform