From 5af2cbf6c73c8cb54c98bf4e5f4fc117eb1fddf2 Mon Sep 17 00:00:00 2001 From: hlopko Date: Wed, 13 Mar 2019 05:41:41 -0700 Subject: [PATCH] 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 --- tools/cpp/compiler_flag.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cpp/compiler_flag.bzl b/tools/cpp/compiler_flag.bzl index 622a0b4c996c16..4a8af3a737f948 100644 --- a/tools/cpp/compiler_flag.bzl +++ b/tools/cpp/compiler_flag.bzl @@ -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"], )