Fix incorrect label in enabled toolchain check.
PiperOrigin-RevId: 232306594
diff --git a/tools/cpp/toolchain_utils.bzl b/tools/cpp/toolchain_utils.bzl
index e1d3958..59f4113 100644
--- a/tools/cpp/toolchain_utils.bzl
+++ b/tools/cpp/toolchain_utils.bzl
@@ -38,7 +38,7 @@
if hasattr(cc_common, "is_cc_toolchain_resolution_enabled_do_not_use") and cc_common.is_cc_toolchain_resolution_enabled_do_not_use(ctx = ctx):
return ctx.toolchains["@bazel_tools//tools/cpp:toolchain_type"]
- if Label("//tools/cpp:toolchain_type") in ctx.fragments.platform.enabled_toolchain_types:
+ if Label("@bazel_tools//tools/cpp:toolchain_type") in ctx.fragments.platform.enabled_toolchain_types:
return ctx.toolchains["@bazel_tools//tools/cpp:toolchain_type"]
# Fall back to the legacy implicit attribute lookup.