Make it possible to test multiple configs in the same BUILD file.

PiperOrigin-RevId: 229960389
This commit is contained in:
Googler 2019-01-18 11:13:11 -08:00 committed by Copybara-Service
parent 0627ae379c
commit dc71ef6ea6
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
"""A test rule that compares two CToolchains in proto format."""
def _impl(ctx):
toolchain_config_proto = ctx.actions.declare_file("toolchain_config.proto")
toolchain_config_proto = ctx.actions.declare_file(ctx.attr.toolchain_identifier + "_toolchain_config.proto")
ctx.actions.write(
toolchain_config_proto,
ctx.attr.toolchain_config[CcToolchainConfigInfo].proto,