Skip to content

Commit e71aba7

Browse files
authored
Add has_default_test_toolchain_type (#112)
This is required if you want to override the `toolchains` attr of a test rule, and want to make sure you're targeting the correct platform for tests.
1 parent 4393953 commit e71aba7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

features.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ _toolchains = struct(
155155
# Whether genrule.toolchains accepts toolchain_type targets
156156
# https://github.com/bazelbuild/bazel/commit/0e876b1794d4db58b72949014401d22cc65d94a1
157157
genrule_accepts_toolchain_types = ge_same_major("8.3.0") or ge("9.0.0-pre.20241016.1"),
158+
# Whether the default_test_toolchain_type exists
159+
# https://github.com/bazelbuild/bazel/commit/7d685648a8a9e4ea203f95ad983088a17103f4a6
160+
has_default_test_toolchain_type = ge("9.0.0-pre.20250324.2"),
158161
)
159162

160163
bazel_features = struct(

0 commit comments

Comments
 (0)