Skip to content

Commit d5ecc8a

Browse files
authored
Add an internal feature for the launcher_maker toolchain (#100)
Allows rules_java, rules_python and rules_shell to detect bazelbuild/bazel@e819495.
1 parent 59915eb commit d5ecc8a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

features.bzl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Defines all the features this module supports detecting."""
22

33
load("@bazel_features_globals//:globals.bzl", "globals")
4-
load("//private:util.bzl", "ge", "ge_same_major", "lt")
4+
load("//private:util.bzl", "ge", "ge_same_major", "gt", "lt")
55

66
_apple = struct(
77
# From Bazel 8.0.0 on, the `xcode_version_flag` is available and the `XcodeVersionConfig`
@@ -125,6 +125,11 @@ _rules = struct(
125125
rule_extension_apis_available = ge("8.0.0rc1"),
126126
# Whether Starlark anaylsis tests can transition on incompatible/experimental flags (#25536)
127127
analysis_tests_can_transition_on_experimental_incompatible_flags = ge("8.2.0"),
128+
129+
# Internal only, don't use outside rules_java, rules_python & rules_shell.
130+
# TODO: Use a larger version range after cherry-picking
131+
# https://github.com/bazelbuild/bazel/commit/e81949554f3ecab5e2c4afd79031f498f36427fe
132+
_has_launcher_maker_toolchain = gt("9.0.0-pre.20250506.6"),
128133
)
129134

130135
_toolchains = struct(

0 commit comments

Comments
 (0)