From 055839ab11f86a83284d305d8d867209e9d74379 Mon Sep 17 00:00:00 2001 From: Sandboxed API Team Date: Mon, 27 Jun 2022 22:24:23 -0700 Subject: [PATCH] Update rules that require a cpp toolchain to use a helper function that defines the toolchain type. PiperOrigin-RevId: 457645244 Change-Id: Ia99251f24e4baec9deb0ff57b86cb388c9cdfb68 --- sandboxed_api/bazel/sapi.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sandboxed_api/bazel/sapi.bzl b/sandboxed_api/bazel/sapi.bzl index 6f71b5c..723eba9 100644 --- a/sandboxed_api/bazel/sapi.bzl +++ b/sandboxed_api/bazel/sapi.bzl @@ -20,7 +20,7 @@ load( "//sandboxed_api/bazel:proto.bzl", _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 sapi_proto_library = _sapi_proto_library @@ -199,7 +199,7 @@ sapi_interface = rule( ), }, output_to_genfiles = True, - toolchains = ["@bazel_tools//tools/cpp:toolchain_type"], + toolchains = use_cpp_toolchain(), ) def sapi_library(