Keep @rules_cc//cc:toolchain_type as fully-qualified label always

Labels in toolchains attribute need to include the repository, otherwise the resolution won't work.

RELNOTES: None.
PiperOrigin-RevId: 279347045
Change-Id: Iba1eb8bb677771e2c089ab6bc1b5e019c4da434e
This commit is contained in:
Googler 2019-11-08 10:50:13 -08:00 committed by Copybara-Service
parent fe8f0a4cf9
commit 8bd6cd75d0
1 changed files with 3 additions and 1 deletions

View File

@ -25,5 +25,7 @@ compiler_flag = rule(
attrs = { attrs = {
"_cc_toolchain": attr.label(default = Label("//cc:current_cc_toolchain")), "_cc_toolchain": attr.label(default = Label("//cc:current_cc_toolchain")),
}, },
toolchains = ["//cc:toolchain_type"], toolchains = [
"@rules_cc//cc:toolchain_type", # copybara-use-repo-external-label
],
) )