BEGIN_PUBLIC
Fix problem with the toolchain definition.
A test for this will be added later in the form of an example toolchain.
END_PUBLIC
PiperOrigin-RevId: 615416990
Change-Id: I1f7fd1640e88b446597768b4f75c2154b630074f
diff --git a/cc/toolchains/toolchain.bzl b/cc/toolchains/toolchain.bzl
index 0fbb45f..cbbcb53 100644
--- a/cc/toolchains/toolchain.bzl
+++ b/cc/toolchains/toolchain.bzl
@@ -13,7 +13,7 @@
# limitations under the License.
"""Implementation of the cc_toolchain rule."""
-load("//cc:defs.bzl", "cc_toolchain")
+load("//cc:defs.bzl", _cc_toolchain = "cc_toolchain")
load(
"//cc/toolchains/impl:toolchain_config.bzl",
"cc_legacy_file_group",
@@ -128,7 +128,7 @@
if visibility != None:
all_kwargs["visibility"] = visibility
- cc_toolchain(
+ _cc_toolchain(
name = name,
toolchain_config = config_name,
all_files = config_name,