Update rules that require a cpp toolchain to use a helper function that defines the toolchain type.

PiperOrigin-RevId: 457645244
Change-Id: Ia99251f24e4baec9deb0ff57b86cb388c9cdfb68
This commit is contained in:
Sandboxed API Team 2022-06-27 22:24:23 -07:00 committed by Copybara-Service
parent e5bc3e69cd
commit 055839ab11

View File

@ -20,7 +20,7 @@ load(
"//sandboxed_api/bazel:proto.bzl", "//sandboxed_api/bazel:proto.bzl",
_sapi_proto_library = "sapi_proto_library", _sapi_proto_library = "sapi_proto_library",
) )
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain")
# Reexport symbols # Reexport symbols
sapi_proto_library = _sapi_proto_library sapi_proto_library = _sapi_proto_library
@ -199,7 +199,7 @@ sapi_interface = rule(
), ),
}, },
output_to_genfiles = True, output_to_genfiles = True,
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"], toolchains = use_cpp_toolchain(),
) )
def sapi_library( def sapi_library(