Add toolchains attribute to compiler_flag
This is needed to build Bazel when --incompatible_enable_cc_toolchain_resolution is set.
RELNOTES: None.
@@ -25,4 +25,5 @@ compiler_flag = rule(
attrs = {
"_cc_toolchain": attr.label(default = Label("//tools/cpp:current_cc_toolchain")),
},
+ toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
)
