Skip to content

Commit 5af2cbf

Browse files
hlopkocopybara-github
authored andcommitted
Add toolchains attribute to compiler_flag
This is needed to build Bazel when --incompatible_enable_cc_toolchain_resolution is set. #6516 #7260 RELNOTES: None. PiperOrigin-RevId: 238209238
1 parent 6875c24 commit 5af2cbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/cpp/compiler_flag.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ compiler_flag = rule(
2525
attrs = {
2626
"_cc_toolchain": attr.label(default = Label("//tools/cpp:current_cc_toolchain")),
2727
},
28+
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
2829
)

0 commit comments

Comments
 (0)