mirror of https://github.com/bazelbuild/rules_cc
Make ctoolchain_compare.bzl more robust by using ctx.label.name as generated files name.
This ensures that the generated files will be unique in the package and therefore there won't be action conflict. RELNOTES: None. PiperOrigin-RevId: 230514342
This commit is contained in:
parent
b8be74cc45
commit
a9932b3939
|
@ -1,7 +1,7 @@
|
|||
"""A test rule that compares two CToolchains in proto format."""
|
||||
|
||||
def _impl(ctx):
|
||||
toolchain_config_proto = ctx.actions.declare_file(ctx.attr.toolchain_identifier + "_toolchain_config.proto")
|
||||
toolchain_config_proto = ctx.actions.declare_file(ctx.label.name + "_toolchain_config.proto")
|
||||
ctx.actions.write(
|
||||
toolchain_config_proto,
|
||||
ctx.attr.toolchain_config[CcToolchainConfigInfo].proto,
|
||||
|
|
Loading…
Reference in New Issue