Skip to content

Commit ecb5000

Browse files
committed
Add feature for use_target_platform_constraints
1 parent 52fcc41 commit ecb5000

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
@@ -129,6 +129,9 @@ _toolchains = struct(
129129
# Whether the mandatory parameter is available on the config_common.toolchain_type function, and thus, whether optional toolchains are supported
130130
# https://bazel.build/versions/6.0.0/extending/toolchains#optional-toolchains
131131
has_optional_toolchains = ge("6.0.0"),
132+
# Whether the use_target_platform_constraints attribute is available on the toolchain rule (#25123)
133+
# https://github.com/bazelbuild/bazel/commit/ba9e539a086859afaa4d2b3bf8d3afb44bcd06ce
134+
has_use_target_platform_constraints = ge("8.2.0"),
132135
)
133136

134137
bazel_features = struct(

0 commit comments

Comments
 (0)