Skip to content

Commit aeba716

Browse files
authored
fix: enable auto exec groups using attribute (#1986)
This allows the precompile action to resolve its tools separately from other toolchains, allowing toolchain types with otherwise incompatible `exec_compatible_with` definitions to be used together.
1 parent ac3abf6 commit aeba716

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ A brief description of the categories of changes:
3131

3232
### Fixed
3333
* (bzlmod): Targets in `all_requirements` now use the same form as targets returned by the `requirement` macro.
34+
* (rules) Auto exec groups are enabled. This allows actions run by the rules,
35+
such as precompiling, to pick an execution platform separately from what
36+
other toolchains support.
3437

3538
### Removed
3639
* Nothing yet

python/private/common/attributes.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ in the resulting output or not. Valid values are:
361361
default = "//python/config_settings:precompile_source_retention",
362362
providers = [BuildSettingInfo],
363363
),
364+
# Force enabling auto exec groups, see
365+
# https://bazel.build/extending/auto-exec-groups#how-enable-particular-rule
366+
"_use_auto_exec_groups": attr.bool(default = True),
364367
},
365368
allow_none = True,
366369
)

0 commit comments

Comments
 (0)