1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5 """Creates a copy of a binary, giving it a different basename.
8 name = "my_binary_other_name",
9 binary = ":some_cc_binary",
13 def _binary_alias_impl(ctx):
15 target_file = ctx.executable.binary,
16 output = ctx.outputs.executable,
21 executable = ctx.outputs.executable,
22 runfiles = ctx.attr.binary[DefaultInfo].default_runfiles,