Skip to content

Commit 4393953

Browse files
authored
Add genrule_accepts_toolchain_types (#110)
For bazelbuild/bazel@0e876b1 ``` $ git log --oneline --all --grep 'Allow genrule.toolchains to accept toolchain_type targets.' | awk '{print $1}' | xargs -I{} sh -c 'git tag -n1 --contains {} | head -n1' 8.3.0 Release 8.3.0 (2025-06-23) 9.0.0-pre.20241016.1 Release 9.0.0-pre.20241016.1 (2024-10-22) ```
1 parent 5d3fd91 commit 4393953

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ _toolchains = struct(
152152
# Whether the use_target_platform_constraints attribute is available on the toolchain rule (#25123)
153153
# https://github.com/bazelbuild/bazel/commit/ba9e539a086859afaa4d2b3bf8d3afb44bcd06ce
154154
has_use_target_platform_constraints = ge("8.2.0"),
155+
# Whether genrule.toolchains accepts toolchain_type targets
156+
# https://github.com/bazelbuild/bazel/commit/0e876b1794d4db58b72949014401d22cc65d94a1
157+
genrule_accepts_toolchain_types = ge_same_major("8.3.0") or ge("9.0.0-pre.20241016.1"),
155158
)
156159

157160
bazel_features = struct(

0 commit comments

Comments
 (0)