Skip to content

Commit 64a2f4b

Browse files
committed
cleanup
1 parent ca2b07c commit 64a2f4b

File tree

5 files changed

+154
-153
lines changed

5 files changed

+154
-153
lines changed

docs/toolchains.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,8 @@ python.single_version_platform_override(
266266
platform = "my-platform",
267267
python_version = "3.13.3",
268268
sha256 = "01d08b9bc8a96698b9d64c2fc26da4ecc4fa9e708ce0a34fb88f11ab7e552cbd",
269-
target_compatible_with = [
270-
"@platforms//os:linux",
271-
"@platforms//cpu:x86_64",
272-
],
269+
os_name = "linux",
270+
arch = "x86_64",
273271
target_settings = [
274272
"@@//:runtime=my-custom-runtime",
275273
],
@@ -298,6 +296,8 @@ Notes:
298296
must also match (e.g. `--@rules_python//python/config_settings:python_version=3.13.3`
299297
must be set -- see `minor_mapping` and `is_default` for controls and docs
300298
about version matching and selection).
299+
- The `target_compatible_with` attribute can be used to entirely specify the
300+
arg of the same name the toolchain uses.
301301
- The labels in `target_settings` must be absolute; `@@` refers to the main repo.
302302
- The `target_settings` are `config_setting` targets, which means you can
303303
customize how matching occurs.

0 commit comments

Comments
 (0)