Skip to content

Commit

Permalink
Add toolchains attribute to compiler_flag
Browse files Browse the repository at this point in the history
This is needed to build Bazel when --incompatible_enable_cc_toolchain_resolution is set.

#6516
#7260

RELNOTES: None.
PiperOrigin-RevId: 238209238
  • Loading branch information
hlopko authored and copybara-github committed Mar 13, 2019
1 parent 6875c24 commit 5af2cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cpp/compiler_flag.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

0 comments on commit 5af2cbf

Please sign in to comment.