Use the launcher maker toolchain for Windows launchers (#79)
`sh_binary` and `sh_test` now get the launcher maker from the
`@bazel_tools//tools/launcher:launcher_maker_toolchain_type` toolchain,
as rules_java already does, instead of the deprecated
`@bazel_tools//tools/launcher:launcher_maker` target, which
bazelbuild/bazel#32632 removes. The `launcher_maker` attribute of
`sh_toolchain` is now a no-op.
The rules also opt into automatic exec groups, as the rules_java rules
do. The execution platform of the launcher action is then selected for
the launcher maker toolchain alone, independently of the shell
toolchain, and `exec_properties` can target it with the
`@@bazel_tools//tools/launcher:launcher_maker_toolchain_type.` prefix.
The toolchain type exists in Bazel 8.3.0 and later, which covers all
versions that use the Starlark rules by default.
Work towards https://github.com/bazelbuild/bazel/issues/19209
3 files changed